Re: Resources to learn more about the difference between packed and unpacked (high/low aligned) samples?
Re: Resources to learn more about the difference between packed and unpacked (high/low aligned) samples?
- Subject: Re: Resources to learn more about the difference between packed and unpacked (high/low aligned) samples?
- From: Kevin Dixon <email@hidden>
- Date: Thu, 15 May 2014 19:48:54 -0700
All of the fields in ASBD are used to describe these things. Packing, as far as I know, is always aligned either high or low regardless of data type
For PCM consider the following. The equations hold regardless of the "container data type" and the audio bit depth.
mFramesPerPacket = 1;
mBytesPerPacket = number_of_channels * sizeof(ContainerDataType);
mBytesPerFrame = mBytesPerPacket;
mChannelsPerFrame = number_of_channels;
mBitsPerChannel = audio_bit_depth;
the packing is specified in mFormatFlags
Hope that helps
Kevin
_______________________________________________
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