Re: AUSoundFilePlayer: Changing Loop Points on the Fly
Re: AUSoundFilePlayer: Changing Loop Points on the Fly
- Subject: Re: AUSoundFilePlayer: Changing Loop Points on the Fly
- From: Felipe Baytelman <email@hidden>
- Date: Thu, 15 Dec 2005 15:23:42 -0300
Hi Doug:
I'm following your cheat codes, in order to change the current
playback of an AUAudioFilePlayer.
What I'm doing is, during playback,
playRegion.mTimeStamp.mFlags = kAudioTimeStampSampleTimeValid;
...
playRegion.mStartFrame = mSomeTargetFrame;
playRegion.mFramesToPlay = UInt32(-1);
AudioUnitSetProperty(fileAU,
kAudioUnitProperty_ScheduledFileRegion, kAudioUnitScope_Global, 0,
&playRegion, sizeof(playRegion));
But I don't know how to stop and go to that region.
I've tried AudioUnitInitialize(), AudioUnitReset(), AUGraphStop(),
AUGraphStart()... but the music won't start again...
Can you give me the last hack?
Thanks
Felipe
On 12-12-2005, at 19:49, Doug Wyatt wrote:
Hi Mark,
Unfortunately I can't think of a way to do this short of resetting
and restarting, which of course will glitch. AUAudioFilePlayer
copies the events the client supply it, so there's no obvious way
to give the client a way to refer to and manipulate an event "in
flight."
You might try building on AUScheduledSoundPlayer ...
Cheers
Doug
--
Doug Wyatt
Core Audio, Apple
Felipe Bruno Baytelman P.
Baytex Software
email@hidden http://www.baytex.net (+56 8) 249 62 41
_______________________________________________
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