AVBlocks for C++  2.1
Audio and Video Software Development Kit
primo::codecs::PcmFlags Namespace Reference

Defines constants for various LPCM properties. More...

Enumerations

enum  Enum {
  None = 0,
  Unsigned = 0x1,
  Float = 0x2,
  BigEndian = 0x4,
  NonInterleaved = 0x8
}
 PcmFlags::Enum. More...
 

Detailed Description

Defines constants for various LPCM properties.

The constants are expressed as bit flags and can be combined together.

See Also
AudioStreamInfo::flags

Enumeration Type Documentation

enum Enum

PcmFlags::Enum.

Enumerator
None 

No flag is set.

Unsigned 

The audio sample should be interpreted as an unsigned integral value.

The sample resolution (8-bit, 16-bit, etc.) is a separate LPCM property and is not expressed with PcmFlags. This flag is irrelevant when the Float flag is set.

Float 

The audio sample should be interpreted as a floating point value.

The sample resolution (32-bit, 64-bit, etc.) is a separate LCPM property and is not expressed with PcmFlags.

BigEndian 

The sample value is stored in a big-endian format.

When this flag is not set the sample format is little-endian.

NonInterleaved 

When this flag is set audio samples from different channels are not interleaved.

All samples from channel 0 are first in memory. They are followed by all samples from channel 1 and so on for all channels.

When this flag is not set the samples are interleaved. The first samples from all channels are first in memory. They are followed by the second samples from all channels and so on until the last sample in time.