Tearing Down remoteIO unit - PerformThru errors
Tearing Down remoteIO unit - PerformThru errors
- Subject: Tearing Down remoteIO unit - PerformThru errors
- From: Info <email@hidden>
- Date: Wed, 8 Dec 2010 19:16:38 -0500
modified aurioTouch, need to toggle between 2 categories, but get constant PerformThru: error 1768846202 when calling -stop
also, -stop method has to be called twice to get ducking to work properly again.
Any ideas?
-(void) deActivate {
if(self.unitIsRunning)
{
XThrowIfError(AudioOutputUnitStop(self.rioUnit), "couldn't stop unit");
self.unitIsRunning = false;
}
AudioSessionSetActive(false);
}
- (void)start {
UInt32 audioCategory = kAudioSessionCategory_PlayAndRecord;
XThrowIfError(AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(audioCategory), &audioCategory), "couldn't set audio category");
AudioSessionSetActive(true);
self.mute = NO;
}
- (void)stop {
self.mute = YES;
[self performSelectorOnMainThread:@selector(deActivate) withObject:nil waitUntilDone:YES];
UInt32 audioCategory = kAudioSessionCategory_MediaPlayback;
XThrowIfError(AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(audioCategory), &audioCategory), "couldn't set audio category");
}
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden