Change volume or loudness for ESP32 A2DP sink

espgtxs
Posts: 4
Joined: Mon Oct 29, 2018 5:20 am

Change volume or loudness for ESP32 A2DP sink

Postby espgtxs » Fri Nov 30, 2018 2:23 am

I'm working on a A2DP sink application modified from A2DP example, but the defult volume is too loud, even I turn down the volume on iphone to minimum level.

How to config the volume in bluedroid of esp-idf ?

Change these lines are useless.
  1. btc_rc_vb.rc_volume = MAX_VOLUME; //btc_avrc.c line 161
  1. UINT8_TO_BE_STREAM(p_data, (AVRC_MAX_VOLUME & p_cmd->volume)); //avrc_bld_ct.c line 86

espgtxs
Posts: 4
Joined: Mon Oct 29, 2018 5:20 am

Re: Change volume or loudness for ESP32 A2DP sink

Postby espgtxs » Wed Dec 12, 2018 5:31 am

i have changed filter bank. seems solve that problem
  1. #define MUL_16S_16S(_x, _y) ((_x)/16 * (_y))

espgtxs
Posts: 4
Joined: Mon Oct 29, 2018 5:20 am

Re: Change volume or loudness for ESP32 A2DP sink

Postby espgtxs » Wed Dec 12, 2018 5:32 am

synthesis-8-generated.c line48


#define MUL_16S_16S(_x, _y) ((_x)/32 * (_y))

Who is online

Users browsing this forum: No registered users and 396 guests