A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2016 by Amaury Pouly
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
18 *
19 ****************************************************************************/
20
21#ifndef __NWZLINUX_CODEC_H__
22#define __NWZLINUX_CODEC_H__
23
24#define AUDIOHW_CAPS 0
25
26/* Ranges from -100dB to 4dB */
27AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -100, 4, -10)
28
29enum nwz_src_t
30{
31 NWZ_PLAYBACK,
32 NWZ_RADIO,
33 NWZ_MIC,
34};
35
36/* enable/disable Sony's "acoustic" mode */
37bool audiohw_acoustic_enabled(void);
38void audiohw_enable_acoustic(bool en);
39/* enable/disable Sony's "cuerev" mode */
40bool audiohw_cuerev_enabled(void);
41void audiohw_enable_cuerev(bool en);
42/* select playback source */
43void audiohw_set_playback_src(enum nwz_src_t src);
44
45#endif /* __NWZLINUX_CODEC_H__ */