Re: Callback when AUFilePlayer is finished?
Re: Callback when AUFilePlayer is finished?
- Subject: Re: Callback when AUFilePlayer is finished?
- From: "tahome izwah" <email@hidden>
- Date: Wed, 18 Oct 2006 15:34:14 +0200
Where does it do this? I can't find anything in my code that would
tell it to repeat the file...
Thanks
--th
2006/10/18, M. Uli Kusterer <email@hidden>:
On 18.10.2006, at 15:13, M. Uli Kusterer wrote:
> On 18.10.2006, at 14:53, tahome izwah wrote:
>> I'm not sure if it helps but I am using the following code in my own
>> program to play a file. Works perfectly and you know when you're done
>> playing it. This is derived from some Apple example code that is in
>> the CoreAudio examples directory. This means that you need some of
>> the
>> AudioFilePlayer support files in your project as well.
>
> Yeah, I'm basing my stuff off the same sample code. It's just that
> I need to run in GUI code where the sound can be paused and
> resumed, so I can't just usleep, and if there was a bit of drift
> this could cause the sound to cut off a tad prematurely. See my
> other posting for more info on what I eventually went with.
Oh, BTW, the PlayFile sample code actually does this (cut off): It
schedules the sound to repeat once (i.e. play twice), but you only
hear it once, because then the usleep is over and the app quits. So,
be sure to specify a repeat count of 0 in the AudioFileRegion or
it'll play twice.
Cheers,
-- M. Uli Kusterer
_______________________________________________
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