瀏覽代碼

forgot to add BT in visualizer

philippe44 5 年之前
父節點
當前提交
86f5a19cdd
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 2 0
      components/squeezelite/output_bt.c
  2. 0 1
      components/squeezelite/output_i2s.c

+ 2 - 0
components/squeezelite/output_bt.c

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

+ 0 - 1
components/squeezelite/output_i2s.c

@@ -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;