libmpdclient 2.22
|
#include <audio_format.h>
Public Attributes | |
uint32_t | sample_rate |
uint8_t | bits |
uint8_t | channels |
uint16_t | reserved0 |
uint32_t | reserved1 |
This structure describes the format of a raw PCM stream.
Definition at line 37 of file audio_format.h.
uint32_t mpd_audio_format::sample_rate |
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.
The special value 0 means "unknown or unspecified".
Definition at line 45 of file audio_format.h.
uint8_t mpd_audio_format::bits |
The number of significant bits per sample. Samples are currently always signed. Supported values are 8, 16, 24, 32 and the special values MPD_SAMPLE_FORMAT_FLOAT, MPD_SAMPLE_FORMAT_DSD, MPD_SAMPLE_FORMAT_UNDEFINED.
Definition at line 56 of file audio_format.h.
uint8_t mpd_audio_format::channels |
The number of channels. Only mono (1) and stereo (2) are fully supported currently.
The special value 0 means "unknown or unspecified".
Definition at line 64 of file audio_format.h.
uint16_t mpd_audio_format::reserved0 |
reserved for future use
Definition at line 67 of file audio_format.h.
uint32_t mpd_audio_format::reserved1 |
reserved for future use
Definition at line 70 of file audio_format.h.