YetAnotherElectronicsChannel/ESP32_Bluetooth_Audio_Receiver

Set Maximum loudness.

Opened this issue · 1 comments

Is it possible to increase maximum loudness? Project work well but it produces very low volume despite increase host volume to max.

I added multiplier in bt_app_core.c . The loudness is increase as intention.

for (int i=0; i<item_size/2; i++) {
int32_t temp = (int32_t)(*pcmdata);
temp = temp * s_volume * 4; // add multiplier here
temp = temp/512;
//*pcmdata = ((*pcmdata)*s_volume)/127;
*pcmdata = (int16_t)temp;
pcmdata++;
}