AVAudioRecorder error 10.9

Hi! I am using AVAudioRecorder to voice recording in my application. On 10.10 everything works fine but on 10.9 does nothing. I noticed in console logs error message: "ERROR: AQMEIO.cpp:377: _FindIOUnit: eror -66680" when i call :prepareToRecord method. Also during the recording AVAudioRecorder peak power value always negative and doesnt change. What does it means and how can I fix it?

The error code coming back from the AudioQueue (which is what AVAudioRecorder is using underneath) is kAudioQueueErr_InvalidDevice from AudioQueue.h.


@constant kAudioQueueErr_InvalidDevice The device assigned to the queue could not be located, or is not properly configured.

Going by just the information provided I would think the first place to look for an issue would be Input Device configuration for the machine you're running 10.9 on. You should be able to see all devices and how they are configured in AMS (via the Audio Devices Window). From there it's standard stuff, choose a default input, set it up, make sure it works (check the Sound Control Panel for example for a level), try recording with another audio app. and so on.

Finally I've found an answer. The reason was in the sandbox project setting. I didn't check microphone box in Target -> Capabilities -> App Sanbox. Yosemite ignore this issue but Maverics not.

AVAudioRecorder error 10.9
 
 
Q