Re: Why does the AudioBuffer structure contain mNumberChannels?
Re: Why does the AudioBuffer structure contain mNumberChannels?
- Subject: Re: Why does the AudioBuffer structure contain mNumberChannels?
- From: James McCartney <email@hidden>
- Date: Mon, 23 Feb 2015 10:11:00 -0800
You’re right that it is a bit of redundant information. The correct value mNumberChannels for an AudioBuffer can be derived from the mChannelsPerFrame and the interleaved flag. For non interleaved formats, mNumberChannels is always 1. For interleaved formats, mNumberChannels is equal to mChannelsPerFrame. The reason for mNumberChannels existence may be that AudioBufferList may have slightly preceeded AudioStreamBasicDescription in CoreAudio’s development. It has a slightly earlier check-in date. These are 15 year old structs by now. The channel assignments for the buffers are determined by an AudioChannelLayout for multichannel, or in the case of stereo, the order is always buffer 0 is left and buffer 1 is right.
On Feb 22, 2015, at 10:50 AM, Ilya Konstantinov < email@hidden> wrote:
James McCartney Apple CoreAudio
|
_______________________________________________
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