YetAnotherElectronicsChannel / ESP32_Bluetooth_Audio_Receiver

46 stars 12 forks source link

Set Maximum loudness. #5

Open tomudo opened 3 years ago

tomudo commented 3 years ago

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

tomudo commented 3 years ago

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++; }