AudioConverter Optimal Use
AudioConverter Optimal Use
- Subject: AudioConverter Optimal Use
- From: Benedict Singer <email@hidden>
- Date: Wed, 23 Jul 2003 14:32:49 +0200 (MEST)
Greetings again all,
My question this time is about the optimal use of AudioConverters.
Specifically, when I'm using an AudioConverter, there are little buzzes in
the output, and doing something else (like making the Dock magnify icons)
at the same time makes the output amazingly choppy. Is this an issue with
the way I'm using the AudioConverter, or is this just a processing power
issue (I really hope not, as this is an 800mHz G4!)?
The detailed situation: the output portion of the program gets PCM data in
format Y from other parts of the program. My audio hardware can output in
format X. So if Y != X then I slap an AudioConverter in there (actually, I
put one in in all cases and assume it's smart enough not to do anything if
Y = X - it appears to be). To use the AudioConverter, rather than just
directly buffering the PCM data and then writing full buffers to the
output, I ask the AudioConverter how much data it's going to want to
convert a full buffer, and then make a pre-buffer that size. PCM data then
fills up that pre-buffer, which is then converted into the real
buffer(using AudioConverterFillBuffer), which is written out (AudioDevice
stuff).
My question: is this the 'best' or most efficient way to drive the
AudioConverter? Could this method be responsible for the quality issues
I'm hearing?
Thanks!
Ben
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.