On 22 May 2014, at 12:50, Ben Kennedy <[email protected]> wrote: > If that is indeed the context in which Gerriet is receiving the error, it > sounds as though the routine generating it is assigning an inappropriate > error domain then, no? Surely it should be a CoreAudio-related domain > (specifically for the reason illustrated by this thread). >
I get this error, when I send: [ [AVAudioSession sharedInstance] setActive: NO withOptions: AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation error: ...] while AVSpeechSynthesizer is still speaking. So the error should be called: "Cannot deactivate audio session because it is still in use". This happens because synthesizer.isSpeaking never returns YES, even if it *does* have some utterances enqueued to speak. The Documentation says: "Returns YES if the synthesizer is speaking or has utterances enqueued to speak, even if it is currently paused." > >> On May 21, 2014, at 10:34 PM, Roland King <[email protected]> wrote: >> >> and of course as soon as I sent the message I do in fact find it >> >> AudioToolbox.framework/Headers/AudioSession.h >> >> >>> On 22 May, 2014, at 1:32 pm, Roland King <[email protected]> wrote: >>> >>> 560030580 = 0x21616374 which is '!act' >>> >>> I believe that's the pattern for Audio stuff, you turn it to a 4-char >>> string. >>> >>> There's a rumour on the internet that used to be >>> kAudioSessionNotActiveError but I'm banana-ed if I can find that in the >>> current SDK. >>> >>>> On 22 May, 2014, at 1:17 pm, Gerriet M. Denkmann <[email protected]> >>>> wrote: >>>> >>>> Got an NSError with: >>>> >>>> "Error Domain=NSOSStatusErrorDomain Code=560030580 "The operation couldn’t >>>> be completed. (OSStatus error 560030580.)"" >>>> >>>> Have: >>>> if ( [ [ outError domain ] isEqualToString: NSOSStatusErrorDomain ] && >>>> [ outError code ] == 560030580 ) >>>> >>>> but would like to have: >>>> if ( [ [ outError domain ] isEqualToString: NSOSStatusErrorDomain ] && >>>> [ outError code ] == NSSomeErrorEnum ) >>>> >>>> Where to look for this? >>>> >>>> Gerriet. >>>> >>>> iOS 7.1.1 _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
