Open picciano opened 9 years ago
Hi @picciano, are you setting the AVAudioSession?
Yes, I do this as the app launches.
//configure audio session
NSError *setCategoryError = nil;
BOOL setCategorySuccess = [[AVAudioSession sharedInstance]
setCategory:AVAudioSessionCategoryPlayAndRecord
withOptions:AVAudioSessionCategoryOptionDuckOthers|AVAudioSessionCategoryOptionDefaultToSpeaker|AVAudioSessionCategoryOptionAllowBluetooth
error:&setCategoryError];
if (setCategorySuccess) {
NSLog(@"Audio Session options set.");
} else {
NSLog(@"WARNING: Could not set audio session options.");
}
I think this might be related to this bug: https://github.com/syedhali/EZAudio/issues/217
Error when calling
self.microphone = [EZMicrophone microphoneWithDelegate:self];
When running on the iOS simulator, I get the error below. However, the recording still functions correctly. I do not get the error when running on a physical device.
Error setting input device port ((null)), reason: The operation couldn’t be completed. (OSStatus error -50.)
Can this error be safely ignored? Or am I doing something wrong?
Thanks!