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

AUSoundFilePlayer: Changing Loop Points on the Fly


  • Subject: AUSoundFilePlayer: Changing Loop Points on the Fly
  • From: Mark Coniglio <email@hidden>
  • Date: Sat, 10 Dec 2005 08:48:25 -0500

I am wondering if there is a way to change loop points on the fly using kAudioUnitProperty_ScheduledFileRegion with the AUSoundFilePlayer.

It seems that once you've scheduled something to play -- it is going to play that chunk until it is complete. I'm trying to emulate the on-the-fly loop start/loop end manipulation available in a QT Movie -- and thoughts on how to do this?

Specifically, can the region start and end points be changed once scheduling has happened? Or do you have to stop playback and reschedule?

For example, if
1) I'm playing a region from 0 to 10,000 frames
2) Playback is currently at frame 5,000,
3) I change the loop points to 2,000 and 6,000

Is there any way to do that so that I don't have to start from 2,000, but can continue from 5,000, get to 6,000 and loop back to 2,000?

It would seem that you could use the callback to do this, but you're not going to get notified until you get close to 10,000 in the example above -- but really I need to know when I'm getting close to 6,000 to reschedule...

Best Wishes,
Mark
--
=====================================================================
Mark Coniglio, Artistic Co-Director | email@hidden
Troika Ranch Dance Theater          | http://www.troikaranch.org
=====================================================================
_______________________________________________
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: AUSoundFilePlayer: Changing Loop Points on the Fly
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: MovieExportToFile
  • Next by Date: Re: Error in AudioUnitRender()
  • Previous by thread: MovieExportToFile
  • Next by thread: Re: AUSoundFilePlayer: Changing Loop Points on the Fly
  • Index(es):
    • Date
    • Thread