How to resolve error in AVAudioSession

Hi All,


I am getting following error in my project when start stop AVAudioSession multiple times.


[aurioc] AURemoteIO.cpp:1086:Initialize: failed: -50 (enable 3, outf< 1 ch, 16000 Hz, Int16> inf< 1 ch, 16000 Hz, Int16>)



Any help is appreciable.


Thanks,

Arun Malik

A -50 error sometimes indicates that you are asking for an unsupported audio format. Try changing the requested audio unit format to use float samples, or a sample rate of 48000, or 2 channels, or some combintion of those to see what works. You can always resample data to or from another rate, and or change the number of channels or sample type somewhere within a mixer or your app's own code. e.g. Accelerate's vDSP framework includes some vector type conversion routines.

How to resolve error in AVAudioSession
 
 
Q