Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Routing QT audio to an AudioUnit



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.
--


+----------------------------------------------------------+
Alberto Ricci - Riccisoft <mailto:email@hidden>
<http://www.riccisoft.com>
+----------------------------------------------------------+
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.