Re: SoundConverterConvertBuffer() is broken on Mac OS X
Re: SoundConverterConvertBuffer() is broken on Mac OS X
- Subject: Re: SoundConverterConvertBuffer() is broken on Mac OS X
- From: Jeff Moore <email@hidden>
- Date: Thu, 13 Dec 2001 11:30:11 -0800
on 12/13/01 9:55 AM, Andrew Taylor <email@hidden> wrote:
>
I imagine that this affects the data that is delivered in the sound
>
buffers and therefore why SoundConverterConvertBuffer does not work
>
as expected.
Compression type 'NONE' == Compression type 'twos'. This isn't your trouble.
>
Now what can I do about it?
You've fallen into the trap of assuming things about how the device works.
As you observed, there are subtle differences in the behavior of the parts
of the Sound Manager that touch the hardware (the sinp and sdev components).
You should never make assumptions about the behavior of things with the
Sound Manager, not even on 9. You should always ask the device about the
format it is giving you, or set it yourself explicitly. Otherwise, your code
will break eventually. I guarantee it.
--
Jeff Moore
Core Audio
Apple