A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
at master 23 lines 600 B view raw
1#ifndef __EROSQLINUX_CODEC__ 2#define __EROSQLINUX_CODEC__ 3 4#define AUDIOHW_CAPS (LINEOUT_CAP) 5 6/* a small DC offset prevents play/pause clicking due to the DAC auto-muting */ 7#define PCM_DC_OFFSET_VALUE -1 8 9/* 10 * Note: Maximum volume is set one step below unity in order to 11 * avoid overflowing pcm samples due to our DC Offset. 12 * 13 * The DAC's output is hot enough this should not be an issue. 14 */ 15AUDIOHW_SETTING(VOLUME, "dB", 0, 2, -74, -2, -40) 16 17//#define AUDIOHW_NEEDS_INITIAL_UNMUTE 18 19void audiohw_mute(int mute); 20void erosq_set_output(int ps); 21int erosq_get_outputs(void); 22 23#endif