mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-16 22:21:21 +00:00
example/sco_util: fix unused var warning
This commit is contained in:
parent
68b642b5ca
commit
6211b0c037
@ -460,6 +460,7 @@ static void sco_demo_receive_CVSD(uint8_t * packet, uint16_t size){
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(SCO_WAV_FILENAME) || defined(USE_PORTAUDIO)
|
||||
const int audio_bytes_read = size - 3;
|
||||
const int num_samples = audio_bytes_read / CVSD_BYTES_PER_FRAME;
|
||||
|
||||
@ -470,7 +471,6 @@ static void sco_demo_receive_CVSD(uint8_t * packet, uint16_t size){
|
||||
audio_frame_in[i] = little_endian_read_16(packet, 3 + i * 2);
|
||||
}
|
||||
|
||||
#if defined(SCO_WAV_FILENAME) || defined(USE_PORTAUDIO)
|
||||
btstack_cvsd_plc_process_data(&cvsd_plc_state, audio_frame_in, num_samples, audio_frame_out);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user