Re: Enum bug?
Re: Enum bug?
- Subject: Re: Enum bug?
- From: Jeff Moore <email@hidden>
- Date: Mon, 2 Feb 2004 11:46:19 -0800
Yes. That would be a bug. kAudioFormatFlagIsNonMixable wasn't supposed
to be in the header just yet. It should not be used or set in any way
(unless it is to mean kAudioFormatFlagIsNonInterleaved of course).
On Feb 1, 2004, at 9:43 AM, Jens Bauer wrote:
Hi all,
I just came across this in CoreAudioTypes.h:
enum
{
// standard flags
kAudioFormatFlagIsFloat = (1L << 0), // set for floating point,
clear for integer
kAudioFormatFlagIsBigEndian = (1L << 1), // set for big endian,
clear for little
kAudioFormatFlagIsSignedInteger = (1L << 2), // set for signed
integer, clear for unsigned integer, only valid if
kAudioFormatFlagIsFloat is clear
kAudioFormatFlagIsPacked = (1L << 3), // set if the sample bits
are packed as closely together as possible, clear if they are high or
low aligned within the channel
kAudioFormatFlagIsAlignedHigh = (1L << 4), // set if the sample
bits are placed into the high bits of the channel, clear for low bit
placement, only valid if kAudioFormatFlagIsPacked is clear
kAudioFormatFlagIsNonInterleaved = (1L << 5), // set if the samples
for each channel are located contiguously and the channels are layed
out end to end, clear if the samples for each frame are layed out
contiguously and the frames layed out end to end
kAudioFormatFlagIsNonMixable = (1L << 5), // set to indicate when
a format is non-mixable
kAudioFormatFlagsAreAllClear = (1L << 31), // set if all the flags
would be clear in order to preserve 0 as the wild card value
Try looking at kAudioFormatFlagIsNonInterleaved and
kAudioFormatFlagIsNonMixable, it appears to me that they have the same
mask, is this a bug ?
[line 168 and 169 in my CoreAudioTypes.h]
Love,
Jens
_______________________________________________
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.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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.
References: | |
| >Enum bug? (From: Jens Bauer <email@hidden>) |