Fwd: AudioConverter fails on SRC when formats are float -> float
Fwd: AudioConverter fails on SRC when formats are float -> float
- Subject: Fwd: AudioConverter fails on SRC when formats are float -> float
- From: Holger Hoerich <email@hidden>
- Date: Tue, 14 Oct 2003 13:30:07 +0200
Hi,
I'm using AudioConverter to do sample rate conversions and format
conversions if necessary. I'm stuck at a point where the sample rate
conversion works when doing format conversion at the same time and it
works also if no conversion is required at all. But I cannot do sample
rate conversion for float input. I don't know what I'm doing wrong here.
The application is derived from DefaultOutputUnit example. A render
function is the callback function of the default output unit. This one
calls AudioConverterFillBuffer and provides a decoder function as
callback. I have to give the converter one chunk of 2048 samples which
I return from an audio decoder in the callback function of the audio
converter.
What I see is that for he examples which work the render function is
called multiple times because of the large input buffer the converter
gets before the decoder is called again but the the float to float with
sample rate conversion the decoder is called everytime the render
function is called but should be called only every 4th time (?)
I would appreciate any help!
Holger
_______________________________________________
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.