I replaced the sleep call with this code:
NSDate* aSecondFromNow = [[NSDate alloc] initWithTimeIntervalSinceNow:1.0];
[[NSRunLoop currentRunLoop] runUntilDate:aSecondFromNow];
[aSecondFromNow release];
and now after reconnecting the microphone the indicator shows up correctly when trying to access the microphone the second time.
Thank you very much!!!
Topic:
Media Technologies
SubTopic:
Audio
Tags: