example/sco_util: fix unused var warning

This commit is contained in:
Matthias Ringwald 2017-04-12 15:45:54 +02:00
parent 68b642b5ca
commit 6211b0c037

View File

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