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.

Detailed Description

This structure describes the format of a raw PCM stream.

Definition at line 60 of file audio_format.h.


Field Documentation

The number of channels.

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

Definition at line 78 of file audio_format.h.

The format samples are stored in.

See the sample_format enum for valid values.

Definition at line 72 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 66 of file audio_format.h.


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

Generated on 9 Aug 2013 for MPD by  doxygen 1.6.1