• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Tearing Down remoteIO unit - PerformThru errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: AVAssetExportSession produces corrupt WAV/AIF files
  • Next by Date: RE: MusicSequencerUserCallback - calling objective-c method
  • Previous by thread: Re: MusicSequencerUserCallback - calling objective-c method
  • Next by thread: Strange silence problem
  • Index(es):
    • Date
    • Thread