Re: HAL Devices and Streams (with QuickTime)
Re: HAL Devices and Streams (with QuickTime)
- Subject: Re: HAL Devices and Streams (with QuickTime)
- From: Lieven Dekeyser <email@hidden>
- Date: Tue, 15 Jan 2002 14:31:29 +0100 (CET)
>
I just need to figure out
>
what I'm going to do with all my QuickTime playback code on OS X ASAP!
If it's just for audio playback, you can use QuickTime's
SoundConverterFillBuffer api to convert the samples to the Float32 format
CoreAudio uses. I've put some sample code on how to do this on:
http://studwww.rug.ac.be/~lbdkeyse/source/CoreAudio/SoundConverterExample.tgz
The code just converts the samples of any audio format QuickTime
understands to stereo 44khz Float32 data, you'll have to copy the
converted data to your device's buffers yourself. Don't forget to set the
buffersize of your device to be the same as the conversion buffer!
--Lieven