I am working on a music visualization program that takes the audio in for the iPhone mic and based on those parameters I generate video.
The problem is, I want to be able to use airplay as a second screen to display the visuals while reading the audio still in from the iPhone mic. Is there a way to do this?
Using
[session setCategory:AVAudioSessionCategoryPlayAndRecord withOptions:AVAudioSessionCategoryOptionMixWithOthers error:&error]
Does not work because it is incompatible with AirPlay. And according to Apple documentation, none of the categories you can use with AirPlay (non-mirror mode) allows you to use the mic. Is there some other way to do it? Because I believe I have seen some apps that do use mic in while using airplay.
thanks.