Buffers Format Conversion
Buffers Format Conversion
- Subject: Buffers Format Conversion
- From: "Malik 522" <email@hidden>
- Date: Fri, 14 Oct 2005 15:09:49 +0000
Hello
I tried to convert a PCM 44khz - 4 bytes/packet to 8 khz - 2bytes/packet
with this function : AudioConverterConvertBuffer. But it does not seem to
work, my buffer is not converted...
AudioUnitRender gives me a 512 frames (4bytes/frame), so I used
AudioConverterConvertBuffer. My code :
=====================================================
AudioUnitRender(theInputUnit, &flags, &myTimeStamp, inBusNumber,
inNumberFrames, theAudioData);
waveform = malloc(theAudioData->mBuffers[0].mDataByteSize);
bzero(waveform, inNumberFrames*4);
AudioConverterConvertBuffer(converter,
theAudioData->mBuffers[0].mDataByteSize, theAudioData->mBuffers[j].mData,
&bufferSize, waveform);
=====================================================
Is there an another function to convert buffers in a specific format ?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden