forked from PAWPAW-Mirror/lib_xua
Base the buffer size on the MIDI_USB_BUFFER_TO_HOST_SIZE.
The buffer task never writes more than this amount of data to the buffer so there is no point in a bigger buffer.
This commit is contained in:
@@ -54,8 +54,8 @@ static inline void swap(xc_ptr &a, xc_ptr &b)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MIDI
|
#ifdef MIDI
|
||||||
static unsigned int g_midi_to_host_buffer_A[MAX_USB_MIDI_PACKET_SIZE/4];
|
static unsigned int g_midi_to_host_buffer_A[MIDI_USB_BUFFER_TO_HOST_SIZE/4];
|
||||||
static unsigned int g_midi_to_host_buffer_B[MAX_USB_MIDI_PACKET_SIZE/4];
|
static unsigned int g_midi_to_host_buffer_B[MIDI_USB_BUFFER_TO_HOST_SIZE/4];
|
||||||
static unsigned int g_midi_from_host_buffer[MAX_USB_MIDI_PACKET_SIZE/4];
|
static unsigned int g_midi_from_host_buffer[MAX_USB_MIDI_PACKET_SIZE/4];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user