Merge remote-tracking branch 'origin/master' into master-cmake

This commit is contained in:
Sebastien
2020-04-17 13:42:20 -04:00
18 changed files with 320 additions and 10 deletions

View File

@@ -21,6 +21,7 @@
#include "driver/gpio.h"
#include "squeezelite.h"
#include "equalizer.h"
#include "perf_trace.h"
#include "platform_config.h"
#include <assert.h>
@@ -85,6 +86,7 @@ void output_close_bt(void) {
running = false;
UNLOCK;
hal_bluetooth_stop();
equalizer_close();
}
static int _write_frames(frames_t out_frames, bool silence, s32_t gainL, s32_t gainR,
@@ -156,6 +158,8 @@ int32_t output_bt_data(uint8_t *data, int32_t len) {
SET_MIN_MAX(wanted_len, under);
}
output.frames_in_process = len-wanted_len;
equalizer_process(data, (len - wanted_len) * BYTES_PER_FRAME, output.current_sample_rate);
UNLOCK;
SET_MIN_MAX(TIME_MEASUREMENT_GET(start_timer),lock_out_time);