MPD 0.17~git
Data Fields
audio_format Struct Reference

This structure describes the format of a raw PCM stream. More...

#include <audio_format.h>

Data Fields

uint32_t sample_rate
 The sample rate in Hz.
uint8_t format
 The format samples are stored in.
uint8_t channels
 The number of channels.
bool reverse_endian
 If zero, then samples are stored in host byte order.

Detailed Description

This structure describes the format of a raw PCM stream.

Definition at line 59 of file audio_format.h.


Field Documentation

The number of channels.

Only mono (1) and stereo (2) are fully supported currently.

Definition at line 77 of file audio_format.h.

The format samples are stored in.

See the sample_format enum for valid values.

Definition at line 71 of file audio_format.h.

If zero, then samples are stored in host byte order.

If nonzero, then samples are stored in the reverse host byte order.

Definition at line 84 of file audio_format.h.

The sample rate in Hz.

A better name for this attribute is "frame rate", because technically, you have two samples per frame in stereo sound.

Definition at line 65 of file audio_format.h.


The documentation for this struct was generated from the following file: