QTSoundStream
QTSoundStream
- Subject: QTSoundStream
- From: Austin Shoemaker <email@hidden>
- Date: Mon, 2 Feb 2004 23:56:12 -0800
The first version of QTSoundStream is complete after many hours of
research and coding. Thanks to the members of this list who
contributed to solving this problem.
QTSoundStream is an Objective-C class that enables routing audio from
QuickTime media into CoreAudio for further processing. To use it, you
just open it, connect your QuickTime media to it, and pull samples as
if it were any other input source.
How does it work? It registers a virtual sound output component that
behaves like any other output device, and when you request audio, it
pulls data from the sound component chain and writes it into your
AudioBufferList, converted to any format supported by CoreAudio. There
are no unnecessary copies performed and the mechanism is highly
efficient.
You can download the source code and an example project at:
http://www.stanford.edu/~austins
- This is the first release; there may be problems I did not encounter.
If you encounter any issues, please let me know at
email@hidden.
- QTSoundStream depends on QuickTime's support for the Sound Manager.
If QuickTime stopped using the Sound Manager this code might not
function as expected. If you plan to use this in a shipping product,
just be aware of this dependency. However, many other currently
shipping products have dependencies on the Sound Manager, so it can't
be that great of a risk.
- To try out the example project, just compile it and open a QuickTime
audio file. It just plays through the DefaultOutputUnit, but I might
write a more fun example that lets you apply crazy effects and such. :
)
_______________________________________________
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.