• 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: When do you ever call AudioSessionSetActive(false)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When do you ever call AudioSessionSetActive(false)?


  • Subject: Re: When do you ever call AudioSessionSetActive(false)?
  • From: Douglas Scott <email@hidden>
  • Date: Thu, 11 Jul 2013 09:00:03 -0700

Right.  You were getting an error indicating that your application was still busy playing and/or recording at the time you were trying to deactivate the audio session.
Stopping the audio units fixed this.

-DS

On Jul 11, 2013, at 8:47 AM, Beinan Li wrote:

I found my problem in the previous post,

I tried to set it to false before calling AudioOutputUnitStop() andAudioUnitUninitialize().

I was able to fix it by calling AudioSessionSetActive(false) after those calls have succeeded.

Now the question still remains: Why none of the sample codes call AudioSessionSetActive(false)?

Thanks!

Beinan

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
References: 
 >Re: When do you ever call AudioSessionSetActive(false)? (From: Beinan Li <email@hidden>)

  • Prev by Date: Re: When do you ever call AudioSessionSetActive(false)?
  • Next by Date: Re: Why is this audio unit producing a distorted sound
  • Previous by thread: Re: When do you ever call AudioSessionSetActive(false)?
  • Next by thread: AUGraph no sound with interleaved format
  • Index(es):
    • Date
    • Thread