audio_format.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-2-Clause
// Copyright The Music Player Daemon Project
#ifndef MPD_AUDIO_FORMAT_H
#define MPD_AUDIO_FORMAT_H
#include <stdint.h>
enum {
MPD_SAMPLE_FORMAT_UNDEFINED = 0x00,
MPD_SAMPLE_FORMAT_FLOAT = 0xe0,
MPD_SAMPLE_FORMAT_DSD = 0xe1,
};
struct mpd_audio_format {
uint32_t sample_rate;
uint8_t bits;
uint8_t channels;
uint16_t reserved0;
uint32_t reserved1;
};
#endif
MPD_SAMPLE_FORMAT_UNDEFINED
@ MPD_SAMPLE_FORMAT_UNDEFINED
Definition audio_format.h:21
MPD_SAMPLE_FORMAT_FLOAT
@ MPD_SAMPLE_FORMAT_FLOAT
Definition audio_format.h:26
MPD_SAMPLE_FORMAT_DSD
@ MPD_SAMPLE_FORMAT_DSD
Definition audio_format.h:31
mpd_audio_format
Definition audio_format.h:37
mpd_audio_format::reserved0
uint16_t reserved0
Definition audio_format.h:67
mpd_audio_format::channels
uint8_t channels
Definition audio_format.h:64
mpd_audio_format::sample_rate
uint32_t sample_rate
Definition audio_format.h:45
mpd_audio_format::reserved1
uint32_t reserved1
Definition audio_format.h:70
mpd_audio_format::bits
uint8_t bits
Definition audio_format.h:56