From a2a151b510be13c72a2ea0515c4eaead7dee43da Mon Sep 17 00:00:00 2001 From: Richard Osborne Date: Fri, 29 Nov 2013 18:52:21 +0000 Subject: [PATCH] Reduce the amount of output buffering. It looks their was a typo here - the code calculates the maximum audio packet size and uses it for the input buffer but not the output buffer. Now the amount of input buffering matches the amount of output buffering. --- module_usb_audio/usb_buffer/decouple.xc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_usb_audio/usb_buffer/decouple.xc b/module_usb_audio/usb_buffer/decouple.xc index 9ebf6d2f..a10feeb2 100644 --- a/module_usb_audio/usb_buffer/decouple.xc +++ b/module_usb_audio/usb_buffer/decouple.xc @@ -42,7 +42,7 @@ unsigned g_numUsbChanIn = NUM_USB_CHAN_IN; #define MAX_DEVICE_AUD_PACKET_SIZE (MAX(MAX_DEVICE_AUD_PACKET_SIZE_CLASS_ONE, MAX_DEVICE_AUD_PACKET_SIZE_CLASS_TWO)) /* Circular audio buffers */ -unsigned outAudioBuff[BUFF_SIZE_OUT + (MAX_USB_AUD_PACKET_SIZE>>2) + 4]; +unsigned outAudioBuff[BUFF_SIZE_OUT + (MAX_DEVICE_AUD_PACKET_SIZE>>2) + 4]; unsigned audioBuffIn[BUFF_SIZE_IN + (MAX_DEVICE_AUD_PACKET_SIZE>>2) + 4]; unsigned inZeroBuff[(MAX_DEVICE_AUD_PACKET_SIZE>>2)+4];