Re: Routing QT audio to an AudioUnit
Re: Routing QT audio to an AudioUnit
- Subject: Re: Routing QT audio to an AudioUnit
- From: Kurt Revis <email@hidden>
- Date: Fri, 27 Sep 2002 11:42:50 -0700
On Friday, September 27, 2002, at 05:34 AM, Alberto Ricci wrote:
Is there any way to route audio playback coming from a QuickTime movie
to an AudioUnit?
I have some code which uses QuickTime to decode audio, and then runs it
through a couple of AudioUnits (an effect and the default output).
http://www.snoize.com/Code/PlayBufferedSoundFile.tar.gz
But that's only about half of what you want. I don't really know
enough about QT to know the best way to sync it with video playback.
Of these two alternatives:
- setting the movie's sound output device to a custom component, which
implements a ring buffer. This buffer is shared with an AudioUnit
which can "pull" samples from it.
- subclassing a MovieController so that it disables any sampled sound
tracks; then it installs an action filter proc in order to be notified
of any transport state modification. An AudioUnit would read samples
using QT API calls from the movie, making sure it keeps itself in sync
with the movie controller and any transport action performed by the
user...
the first sounds more elegant. (But I've never had to write a Sound
Manager output component--thank goodness-so I may be mistaken.)
--
Kurt Revis
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.