• 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: AVAudioPlayer interferes Output Audiounit on Simulator ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AVAudioPlayer interferes Output Audiounit on Simulator ?


  • Subject: Re: AVAudioPlayer interferes Output Audiounit on Simulator ?
  • From: William Stewart <email@hidden>
  • Date: Fri, 9 Oct 2009 14:53:49 -0700

Hi Zhiye

This does seem to be strange behaviour. Can you file a bug report (http://bugreporter.apple.com) and if you can attach some code to demonstrate this, that would be helpful

Thanks

BIll

On Oct 8, 2009, at 9:59 PM, Zhiye (Sterling) Li wrote:

Hi All,

I got this strange problem. I have an AVAudioPlayer and an Output AudioUnit in the same project. The audiounit is set up at the beginning of the program and the AVAudioPlayer is inited whenever it's needed. They both work perfectly, but When I use AVAudioPlayer to play a sound first, and stop it or let it play to the end, and then use the output audiounit to play a sound, the audiounit will not work any more! The recording and playback rendering callback do not even get called. However, if I do [player pause] (player is an instance of AVAudioplayer) instead of [player stop], it will not affect the audiounit. In other words, whenever [player stop] happens or the player reaches the end of the sound, the audiounit will stop working afterwards.

I tried to reset the audio session category after the [player stop], and even reset the entire audiounit, but the audiounit still did not respond. Another strange thing is that on iPhone this problem disappears.

So, can anybody give me a clue what might have happened? Thank you in advance!

Best,

Zhiye
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
  • Follow-Ups:
    • Re: AVAudioPlayer interferes Output Audiounit on Simulator ?
      • From: "Zhiye (Sterling) Li" <email@hidden>
References: 
 >AVAudioPlayer interferes Output Audiounit on Simulator ? (From: "Zhiye (Sterling) Li" <email@hidden>)

  • Prev by Date: Re: "Old"-style (carbon?) blue generic view shows up under Logic
  • Next by Date: Re: "Old"-style (carbon?) blue generic view shows up under Logic
  • Previous by thread: AVAudioPlayer interferes Output Audiounit on Simulator ?
  • Next by thread: Re: AVAudioPlayer interferes Output Audiounit on Simulator ?
  • Index(es):
    • Date
    • Thread