libmpdclient
2.22
mpd
audio_format.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
// Copyright The Music Player Daemon Project
3
10
#ifndef MPD_AUDIO_FORMAT_H
11
#define MPD_AUDIO_FORMAT_H
12
13
#include <stdint.h>
14
15
enum
{
21
MPD_SAMPLE_FORMAT_UNDEFINED
= 0x00,
22
26
MPD_SAMPLE_FORMAT_FLOAT
= 0xe0,
27
31
MPD_SAMPLE_FORMAT_DSD
= 0xe1,
32
};
33
37
struct
mpd_audio_format
{
45
uint32_t
sample_rate
;
46
56
uint8_t
bits
;
57
64
uint8_t
channels
;
65
67
uint16_t
reserved0
;
68
70
uint32_t
reserved1
;
71
};
72
73
#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
Generated by
1.9.7