aurioTouch2 fails when replugging headset on iPod touch 3rd gen

Originator:gson
Number:rdar://13429977 Date Originated:15-Mar-2013
Status:Open Resolved:
Product:Sample Code Product Version:Version 1.0, 2011-12-06
Classification:Serious Bug Reproducible:Always
 
Summary:

When running the aurioTouch2 sample app unmodified on a 3rd generation
iPod Touch with iOS 5.1.1 (the latest supported iOS version) and a
wired headset (the only way to run it since there is no built-in
microphone), if the headset is unplugged and then plugged back in
while the app is running, the app stops responding to sound.

Steps to Reproduce:

Download the aurioTouch2 example code.

Open the project it in XCode 4.6.

In the Build Settings, change the iOS Deployment Target to 5.0.

Connect a 3rd generation iPod Touch running iOS 5.1.1 and provisioned
for development.

Plug a wired headset (e.g, EarPods with Remote and Mic) into the iPod.

Build the project and run it on the iPod.

Verify that the app is working correctly by speaking into the headset
microphone and observing that the waveform display wiggles.

Unplug the headset from the iPod.

Replug the headset into the iPod.

Speak into the heasdset microphone again.

Expected Results:

The waveform display should wiggle as it did before.

Actual Results:

The waveform display fails to wiggle.

Regression:

Notes:

The older aurioTouch sample app (without the "2") also fails in a
similar way.

I am trying to resolve a similar problem in an app of my own, and it
would be really helpful to have some example code that actually works.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!