Re: Stream Format Calculation
Re: Stream Format Calculation
- Subject: Re: Stream Format Calculation
- From: Jeremy Sagan <email@hidden>
- Date: Fri, 03 Nov 2006 14:20:45 -0500
Hello Chris,
On Nov 3, 2006, at 1:59 PM, Chris Edgington wrote:
I'm confused about the stream format calculation. If the data size
is 4 bytes (Float32),
with 2 channels per frame, wouldn't that be 8 bytes per frame and 8
bytes per packet
(instead of the 4 they describe)?
From "CoreAudioTypes.h"
// However, when an ASBD has the kAudioFormatFlagIsNonInterleaved
flag, the AudioBufferList has a different
// structure and semantic. In this case, the ASBD fields will
describe the format of ONE of the AudioBuffers
// that are contained in the list, AND each AudioBuffer in the list
is determined to have a single (mono) channel
// of audio data. Then, the ASBD's mChannelsPerFrame will indicate
the total number of AudioBuffers that are
// contained within the AudioBufferList - where each buffer contains
one channel. This is used primarily with
// the AudioUnit (and AudioConverter) representation of this list -
and typically won't be found in the AudioHardware usage of
// this structure.
Jeremy Sagan
Sagan Technology
www.sagantech.biz
_______________________________________________
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