Re: reading audiofile into floatbuffer
Re: reading audiofile into floatbuffer
- Subject: Re: reading audiofile into floatbuffer
- From: stiwi kirch <email@hidden>
- Date: Thu, 15 Jan 2004 14:05:55 +0100
Thanks Philippe,
but i still stuck with AudioConverterFillComplexBuffer. How do i have
to set up a AudioBufferList for the AudioConverterFillComplexBuffer
call if my AudioStreamBasicDescription target looks like this:
// WaveTable::printStreamDescription
Sample Rate: 44100.000000
Format ID: lpcm
Format Flags: 2B
Bytes per Packet: 4
Frames per Packet: 1
Bytes per Frame: 4
Channels per Frame: 2
Bits per Channel: 32
// WaveTable::readFileIntoMemory
BytesReturned: 233732
Packets: 58433
Do i need something like this?
AudioBufferList floatBuffer;
floatBuffer.mNumberBuffers = 2; // 2 because i need 2 mono float
buffers?
floatBuffer.mBuffers[0].mData = malloc(?); // how can i calculate the
memSize of one buffer?
floatBuffer.mBuffers[0].mNumberChannels = 1; // because it's one mono
channel?
floatBuffer.mBuffers[0].mDataByteSize = ?; // some size i don't know
how to calulate
floatBuffer.mBuffers[1].mData = malloc(?);
floatBuffer.mBuffers[1].mNumberChannels = 1;
floatBuffer.mBuffers[1].mDataByteSize = ?;
stiwi
_______________________________________________
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.