SoundConverterConvertBuffer() is broken on Mac OS X
SoundConverterConvertBuffer() is broken on Mac OS X
- Subject: SoundConverterConvertBuffer() is broken on Mac OS X
- From: Andrew Taylor <email@hidden>
- Date: Wed, 12 Dec 2001 17:38:34 -0500
Hello,
I would search the archives, but while I know my password, I don't
know what user name the web site wants.
In any case I am new to the list and I have no idea what is in core audio.
I currently use SoundConverterConvertBuffer() on Mac OS 9 to convert
44khz mono 16 bit sound input to 16khz mono 16 bit sound input. Works
flawlessly.
It is called as part of a interrupt callback routine for SPBRecord.
For Mac OS X, interrupt callbacks don't seem to work. So I rewrote
the code to use a completion routine, which works, but the resulting
data coming out of SoundConverterConvertBuffer is wrong. It is as if
the voice played back is very very very slow.
Has anybody else encountered this?
Has something changed in the data that is delivered from SPBRecord?
Are different parameters required for SoundConverterConvertBuffer() ?
Is there an equivalent call in core audio that I can call from my
completion routine in a CFM application and get this functionality?
thanks.
--
---------------------------
Andrew Taylor
Founder/CTO
MacSpeech, Inc.
<
http://www.macspeech.com>