Re: AVAudioPlayer interferes Output Audiounit on Simulator ?
Re: AVAudioPlayer interferes Output Audiounit on Simulator ?
- Subject: Re: AVAudioPlayer interferes Output Audiounit on Simulator ?
- From: "Zhiye (Sterling) Li" <email@hidden>
- Date: Mon, 12 Oct 2009 00:52:52 -0500
Hi Bill,
I made a simple sample code with only one AVAudioPlayer and an Output AudioUnit, and the same problem happens that the AudioUnit will not respond anymore after the [AVAudioPlayer stop] is called. I just filed the bug report and attached the code. It's here if anyone is interested to test it as well:
http://sites.google.com/site/zhiyezhiye/AVPlayer_vs_AudioUnitTest.zip?attredirects=0Zhiye
On Fri, Oct 9, 2009 at 4:53 PM, William Stewart
<email@hidden> wrote:
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)
This email sent to email@hidden
_______________________________________________
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