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:
Richard Osborne
2013-12-02 16:40:57 +00:00
parent 662ac7df58
commit 09bafcfb3a

View File

@@ -54,8 +54,8 @@ static inline void swap(xc_ptr &a, xc_ptr &b)
#endif
#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_B[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[MIDI_USB_BUFFER_TO_HOST_SIZE/4];
static unsigned int g_midi_from_host_buffer[MAX_USB_MIDI_PACKET_SIZE/4];
#endif