Re: SoundComponentData to AudioStreamBasicDescription
Re: SoundComponentData to AudioStreamBasicDescription
- Subject: Re: SoundComponentData to AudioStreamBasicDescription
- From: Lieven Dekeyser <email@hidden>
- Date: Wed, 16 Jan 2002 10:49:45 +0100 (CET)
>
Why not use the AudioConverter - at least if you're just doing OS X that is
>
a better alternative..
I know, but my app needs to be able to handle compressed variable bitrate
formats like mp3s, so I figured it would be best to use the SoundConverter
API. It enables me to handle all audio formats QuickTime can handle with
the same code... That's not possible with the AudioConverter, right? (only
fixed rate LinearPCM, right?) Or did I look over something?
>
> does anyone know what mBytesPerPacket, mBytesPerFrame, mChannelsPerFrame
>
> and mBitsPerChannel should be in the AudioStreamBasicDescription
Anyway... just ignore my last post: as it worked with the default audio
device, I looked at its AudioStreamBasicDescription and I'll use these
values...
Here's another question: Is it possible to change the buffer size of an
AudioUnit (the buffer you get in it's InputCallback)? Or is it allways a
fixed size? I noticed it was allways 4096 bytes, but that might just be
coincidence...
--Lieven