forgot to add BT in visualizer

This commit is contained in:
philippe44
2020-02-16 23:35:40 -08:00
parent ed224f6b71
commit 86f5a19cdd
2 changed files with 2 additions and 1 deletions

View File

@@ -120,6 +120,8 @@ static int _write_frames(frames_t out_frames, bool silence, s32_t gainL, s32_t g
u8_t *buf = silencebuf;
memcpy(btout + oframes * BYTES_PER_FRAME, buf, out_frames * BYTES_PER_FRAME);
}
output_visu_export((s16_t*) (btout + oframes * BYTES_PER_FRAME), out_frames, output.current_sample_rate, silence);
return (int)out_frames;
}

View File

@@ -365,7 +365,6 @@ static int _i2s_write_frames(frames_t out_frames, bool silence, s32_t gainL, s32
_scale_and_pack_frames(obuf + oframes * bytes_per_frame, optr, out_frames, gainL, gainR, output.format);
#endif
// send data to visu
output_visu_export((s16_t*) (obuf + oframes * bytes_per_frame), out_frames, output.current_sample_rate, silence);
oframes += out_frames;