Raw Audio Frame Buffer Format (DL)

An audio stream is a sequence of samples of a specified data type and endianness.

Raw audio frames are identified by the dlaudio_XXXXX format tag. Audio clips will have one of the following format tags.

Format Type Permitted Tag
Big-endian
  • dlaudio_int16
  • dlaudio_int24
  • dlaudio_float
Little-endian
  • dlaudio_int16_le
  • dlaudio_int24_le
  • dlaudio_float_le

For audio streams that contain 24-bit samples, the samples are stored as 32-bit integers. Samples are not packed. Instead, eight filler bits are appended to the sample, so each sample corresponds to a 32-bit word. They can be little-endian or big-endian.

Multi-channel (interlaced) audio appears as samples grouped into channels. For example, a three-channel floating point sample consists of a stream of sample triplets.

Note: A Wiretap client can obtain the format tag for an audio clip as follows:
        WireTapAudioClipFormat formatObject;        
        clipNode.getClipFormat(formatObject);
        char* formatTag = formatObject.formatTag();