AudioFormatFlags Enum

Definition

Flags describing the stream in the AudioStreamBasicDescription.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum AudioFormatFlags
type AudioFormatFlags = 
Inheritance
AudioFormatFlags
Attributes

Fields

AppleLossless16BitSourceData 1

Apple Lossless data, native endian, signed integers, 16 bits.

AppleLossless20BitSourceData 2

Apple Lossless data, native endian, signed integers, 20 bits (24 bit aligned).

AppleLossless24BitSourceData 3

Apple Lossless data, native endian, signed integers, 24 bits.

AppleLossless32BitSourceData 4

Apple Lossless data, native endian, signed integers, 32 bits.

CafIsFloat 1
CafIsLittleEndian 2
FlagsAreAllClear 2147483648

Use this value to indicate that no flags are set. Use instead of the value zero, as that represents that no flag state is set.

IsAlignedHigh 16

If set, sample bits are on the high bits.

IsBigEndian 2

If this flag is set, the data is encoded in big endian format otherwise it is in little endian.

IsFloat 1

If this flag is set, the data is encoded using floating point values instead of integers.

IsNonInterleaved 32

If set, the data is non-interleaved (monophonic).

IsNonMixable 64

If set, the audio data is non-mixable.

IsPacked 8

Set if the sample bits occupy the entire available bits for the channel, clear if they are high- or low-aligned within the channel.

IsSignedInteger 4

If the data encoded using integers (the IsFloat flag is cleared) this determines whether they are signed or unsigned.

LinearPCMFlagsAreAllClear 2147483648

Linear PCM audio format: all flags are set to zero. Use this instead of zero, which means that no flags are configured.

LinearPCMIsAlignedHigh 16

Linear PCM audio format: if set, sample bits are on the high bits.

LinearPCMIsBigEndian 2
LinearPCMIsFloat 1
LinearPCMIsNonInterleaved 32

If this flag is set then there are separate AudioBuffers for each channel, otherwise the data for the left and right channels is interleaved in the same buffer.

LinearPCMIsNonMixable 64
LinearPCMIsPacked 8
LinearPCMIsSignedInteger 4
LinearPCMSampleFractionMask 8064
LinearPCMSampleFractionShift 7

Remarks

The core set of flags describe properties of the audio stream (integer vs float values, endianess, interleaved) while the other flags are only used if the AudioFormatType is set to either LinearPCM (those are the values prefixed with LinearPCM) or AppleLossles (enumeration values prefixed with AppleLossles).

Applies to