From c63df2e961277404fa6017aef6a90e96602d67d9 Mon Sep 17 00:00:00 2001 From: shuchitak Date: Tue, 18 Feb 2020 10:20:25 +0000 Subject: [PATCH] update g_curSubSlot_Out and g_curSubSlot_In under #if USB_DESCRIPTOR_OVERRIDE_RATE_RES --- lib_xua/src/core/buffer/decouple/decouple.xc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib_xua/src/core/buffer/decouple/decouple.xc b/lib_xua/src/core/buffer/decouple/decouple.xc index 6fc1b5c9..d7634195 100644 --- a/lib_xua/src/core/buffer/decouple/decouple.xc +++ b/lib_xua/src/core/buffer/decouple/decouple.xc @@ -165,8 +165,10 @@ int g_maxPacketSize = MAX_DEVICE_AUD_PACKET_SIZE_IN_FS; void handle_audio_request(chanend c_mix_out) { int space_left; +#if(defined USB_DESCRIPTOR_OVERRIDE_RATE_RES) g_curSubSlot_Out = get_usb_to_device_bit_res() >> 3; g_curSubSlot_In = get_device_to_usb_bit_res() >> 3; +#endif /* Input word that triggered interrupt and handshake back */ unsigned underflowSample = inuint(c_mix_out);