• 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
Re: AURemoteIO returning an error on AudioOutputUnitStart
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AURemoteIO returning an error on AudioOutputUnitStart


  • Subject: Re: AURemoteIO returning an error on AudioOutputUnitStart
  • From: Chris Adamson <email@hidden>
  • Date: Tue, 3 Mar 2009 22:57:48 -0500

Evan--

So were you able to handle the interruption correctly?  I just hit this problem tonight -- when I get and dismiss an incoming call, I can't re-start my RemoteIO audio unit.  Thinking that Core Audio nuked my audio to service the ringtone, I tried disposing of my old RIO:

if (inInterruptionState == kAudioSessionBeginInterruption) {
[vc stopPlaying];
[vc.playStopButton setSelected: NO];
// dispose of audio unit
AudioUnitUninitialize(vc.remoteIOUnit);
AudioComponentInstanceDispose(vc.remoteIOUnit);
vc.remoteIOUnit = NULL;

And in the end-interruption case, I re-call my audio unit setup method.  It finds and instantiates the RIO and sets the properties I need (again), but then fails on this:

setupErr = AudioUnitInitialize(remoteIOUnit);

with the same error code you mentioned, kAudioSessionNotActiveError.

So I tried also (re-)initializing the audio session, but I get kAudioSessionAlreadyInitialized when I call AudioSessionInitialize.

Did you get your end-interruption handler working, and did you see any of these problems in the process?

Thanks in advance.

--Chris


On March 3, 2009 8:25:01 AM EST, Evan Olcott wrote:

From: Evan Olcott <email@hidden>
Date: March 3, 2009 8:25:01 AM EST
To: Mark's Studio <email@hidden>, CoreAudio list <email@hidden>
Subject: Re: AURemoteIO returning an error on AudioOutputUnitStart

On Mar 3, 2009, at 4:15 AM, Mark's Studio wrote:

In AudioServices.h

kAudioSessionNotActiveError = '!act'

Wow. I get the RTFM award for the day. Thanks, Peter.

(I wish Spotlight searches would pull up this stuff)

 _______________________________________________
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: Re: CAClockSetCurrentTime Help
  • Next by Date: Re: AURemoteIO returning an error on AudioOutputUnitStart
  • Previous by thread: Re: AURemoteIO returning an error on AudioOutputUnitStart
  • Next by thread: Re: AURemoteIO returning an error on AudioOutputUnitStart
  • Index(es):
    • Date
    • Thread