• 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: AUSoundFilePlayer: Changing Loop Points on the Fly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >AUSoundFilePlayer: Changing Loop Points on the Fly (From: Mark Coniglio <email@hidden>)
 >Re: AUSoundFilePlayer: Changing Loop Points on the Fly (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Streaming Audio
  • Next by Date: Re: Callback [was PlayFile]
  • Previous by thread: Re: AUSoundFilePlayer: Changing Loop Points on the Fly
  • Next by thread: Error 0x18AA800 returned from AudioUnitRender()
  • Index(es):
    • Date
    • Thread