mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
add loudness (alpha)
This commit is contained in:
@@ -69,6 +69,7 @@ void output_init_bt(log_level level, char *device, unsigned output_buf_size, cha
|
||||
char *p = config_alloc_get_default(NVS_TYPE_STR, "stats", "n", 0);
|
||||
stats = p && (*p == '1' || *p == 'Y' || *p == 'y');
|
||||
free(p);
|
||||
equalizer_set_samplerate(output.current_sample_rate);
|
||||
}
|
||||
|
||||
void output_close_bt(void) {
|
||||
@@ -143,7 +144,7 @@ int32_t output_bt_data(uint8_t *data, int32_t len) {
|
||||
output.frames_in_process = oframes;
|
||||
UNLOCK;
|
||||
|
||||
equalizer_process(data, oframes * BYTES_PER_FRAME, output.current_sample_rate);
|
||||
equalizer_process(data, oframes * BYTES_PER_FRAME);
|
||||
|
||||
SET_MIN_MAX(TIME_MEASUREMENT_GET(start_timer),lock_out_time);
|
||||
SET_MIN_MAX((len-oframes*BYTES_PER_FRAME), rec);
|
||||
|
||||
Reference in New Issue
Block a user