mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 22:47:15 +03:00
BT ring buffering
This commit is contained in:
@@ -436,8 +436,13 @@ static void process_audg(u8_t *pkt, int len) {
|
||||
audg->gainR = unpackN(&audg->gainR);
|
||||
|
||||
LOG_DEBUG("audg gainL: %u gainR: %u adjust: %u", audg->gainL, audg->gainR, audg->adjust);
|
||||
|
||||
#if CONFIG_BTAUDIO
|
||||
set_volume_bt(audg->adjust ? audg->gainL : FIXED_ONE, audg->adjust ? audg->gainR : FIXED_ONE);
|
||||
#elif CONFIG_DACAUDIO
|
||||
set_volume_dac(audg->adjust ? audg->gainL : FIXED_ONE, audg->adjust ? audg->gainR : FIXED_ONE);
|
||||
#else
|
||||
set_volume(audg->adjust ? audg->gainL : FIXED_ONE, audg->adjust ? audg->gainR : FIXED_ONE);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void process_setd(u8_t *pkt, int len) {
|
||||
|
||||
Reference in New Issue
Block a user