Why does the AudioBuffer structure contain mNumberChannels?
Why does the AudioBuffer structure contain mNumberChannels?
- Subject: Why does the AudioBuffer structure contain mNumberChannels?
- From: Ilya Konstantinov <email@hidden>
- Date: Sun, 22 Feb 2015 19:44:00 +0200
When calling AudioUnitRender, we're passing a list of AudioBuffers:
struct AudioBuffer
{
UInt32 mNumberChannels; // <-- why this?
UInt32 mDataByteSize;
void* mData;
};
Why does it
have to
contain
an
mNumberChannels
member?
After all, we've already set up the stream format with an AudioStreamBasicDescription
, including
mChannelsPerFrame
:
struct AudioStreamBasicDescription
{
Float64 mSampleRate;
AudioFormatID mFormatID;
AudioFormatFlags mFormatFlags;
UInt32 mBytesPerPacket;
UInt32 mFramesPerPacket;
UInt32 mBytesPerFrame;
UInt32 mChannelsPerFrame; // <-- ... when we have this?
UInt32 mBitsPerChannel;
UInt32 mReserved;
};
Thanks.
_______________________________________________
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