mpd_audio_format Struct Reference

#include <audio_format.h>

List of all members.

Public Attributes

uint32_t sample_rate
uint8_t bits
uint8_t channels
uint16_t reserved0
uint32_t reserved1

Detailed Description

This structure describes the format of a raw PCM stream.

Definition at line 43 of file audio_format.h.


Member Data Documentation

The number of significant bits per sample. Samples are currently always signed. Supported values are 8, 16, 24, 32. 24 bit samples are packed in 32 bit integers.

Definition at line 56 of file audio_format.h.

The number of channels. Only mono (1) and stereo (2) are fully supported currently.

Definition at line 62 of file audio_format.h.

reserved for future use

Definition at line 65 of file audio_format.h.

reserved for future use

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


The documentation for this struct was generated from the following file:
Generated on Sun Aug 8 15:50:35 2010 for libmpdclient by  doxygen 1.6.3