How to get feed samples to QT in realtime? (like CoreAudio)
How to get feed samples to QT in realtime? (like CoreAudio)
- Subject: How to get feed samples to QT in realtime? (like CoreAudio)
- From: "David M.Cotter" <email@hidden>
- Date: Sun, 13 Mar 2005 23:09:31 -0800
using CoreAudio, I can set up an output, set up an render callback,
then start the output. then the output "pulls" samples from the render
callback, and from there I have access to the samples. eg: I can use
FillComplexBuffer() and whatnot to get the decompressed data from an
MP3. lovely. at that point I can massage the data how I see fit
before sending it along to CoreAudio.( as long as I do it very very
fast)
is there any way to play QuickTime audio this way? eg: is there a
QuickTime AudioUnit?
see, I was going with CoreAudio cuz it's new and modern, and because
Apple told me to. but it doesn't play AAC (why?), OGG, or LAME MP3's
(another why?). But QuickTime does.
i took an AIFF and used QTConvert to export it to AAC, OGG and LAME,
then tried to play those files using CoreAudio, did not function at
all.
if you want to repro my experiment, you'll need these things:
http://www.pyehouse.com/lynn/qtconvert.php
http://doublecommand.sourceforge.net/qtoggvorbis.html
http://www.pyehouse.com/lynn/lamework.php
(aside: no i don't know why CoreAudio won't play the LAME MP3 file.
IMHO it should, since it's MP3)
Anyway the point here is I NEED to be able to touch/change the
uncompressed samples in realtime, no ring/double buffering allowed
here.
eg: i saw the SoundPlayer sample code at:
http://developer.apple.com/samplecode/SoundPlayer/SoundPlayer.html
but this uses dual buffers and sends the full buffer off to the QT
channel. i need this to be realtime, like CoreAudio, pulling when it
needs samples.
How?
would it be like, use the SoundPlayer example but give it really small
buffers? can I do it on a thread?
_______________________________________________
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