Routing QT audio to an AudioUnit
Routing QT audio to an AudioUnit
- Subject: Routing QT audio to an AudioUnit
- From: Alberto Ricci <email@hidden>
- Date: Fri, 27 Sep 2002 14:34:40 +0200
I just posted this to quicktime-api and realized that it would be
appropriate here too... sorry for the cross-post if you're subscribed
to both lists.
Hi,
Is there any way to route audio playback coming from a QuickTime
movie to an AudioUnit?
I am afraid that the different methods used to convey samples (a push
mechanism in QT, a pull mechanism for AudioUnits) make it too
complicated.
However, I suppose that many applications would benefit from being
able to, say, filter a QT movie controller's output using some AU
which provides greater flexibility than MediaSetSoundBassAndTreble()
;-) , or making the audio flow into the 3D Mixer for spatialization,
and so on.
Maybe it is something Apple engineers could think about...
In the meantime, I wonder which solutions can be found. I can only think of:
- 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...
I can think of drawbacks and inconveniences for both, so... any
suggestions are welcome!
Ciao,
Alberto.
_______________________________________________
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.