Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
iPod Touch, headset and kAudioSessionBeginInterruption
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPod Touch, headset and kAudioSessionBeginInterruption



Hi all,

This is my first post the list so please go easy on me.  I'm
resurrecting thread from back in March of last year:

http://lists.apple.com/archives/coreaudio-api/2009/Mar/msg00341.html

Did this ever get resolved?  If so please ignore the rest of this
message.

We've been experiencing this exact same problem and can reproduce it
pretty consistently on iTouch devices.  The problem is essentially that
removing the headset while while in PlayAndRecord mode causes an
AudioSession interruption that never ends.

Reproduction steps:

 1) Download the SpeakHere example from the apple developer site.
 2) Put printf statements in the route changed callback, the
    interruption callback and the input availability callback.
 3) Run the app on an iPod touch with the headset initially plugged
 4) Start recording and unplug the headset during recording.
 5) Notice the following sequence of printf statements in the
    debug console:

     - route changed (stopping input queue)
     - interruptionListener: Begin
     - input availability changed

Notice the lack of any end to the interruption.

In our more complicated application I've tried doing all kind of things
to the audio session when the initial route changed callback is fired,
but whatever I do I can't seem to avoid the following interruption.

I myself have reproduced that above problem on an iTouch 3G running iOS
4.1 beta3.


--
sam clegg
email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.