diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2015-12-19 14:51:44 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2015-12-19 14:51:44 +0100 |
commit | a5806ad61caafbb68771a618584695c6d565c327 (patch) | |
tree | 7b9d164d1b8cde26773b9759b155a515b205cc17 /src/controllers/midi/portmidicontroller.h | |
parent | 770de57ee158f6ac94d110b8367fd11732912769 (diff) |
Improve comments for MIXXX_PORTMIDI_BUFFER_LEN
Diffstat (limited to 'src/controllers/midi/portmidicontroller.h')
-rw-r--r-- | src/controllers/midi/portmidicontroller.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/controllers/midi/portmidicontroller.h b/src/controllers/midi/portmidicontroller.h index 628f08e112..37fd02b2e4 100644 --- a/src/controllers/midi/portmidicontroller.h +++ b/src/controllers/midi/portmidicontroller.h @@ -20,12 +20,19 @@ #include <portmidi.h> #include "controllers/midi/midicontroller.h" -// Mixxx completely stops responding to the controller if more than this number of messages queue up. -// Don't lower this (much.) The SCS.1d accumulated 500 messages in a single poll during stress-testing. -#define MIXXX_PORTMIDI_BUFFER_LEN 1024 /**Number of MIDI messages to buffer*/ -#define MIXXX_PORTMIDI_NO_DEVICE_STRING "None" /**String to display for no MIDI devices present */ +// Mixxx completely stops responding to the controller if more than this number +// of messages queue up. Don't lower this (much.) The SCS.1d a 3x Speed device +// accumulated 500 messages in a single poll during stress-testing. +// A midi message contains 1 .. 4 bytes. +// The maximum Midi Speed (3x Speed) is around 3125 messages per second +// if we assume normal 3 Byte messages. +// a 1024 messages buffer will buffer ~327 ms Midi-Stream +#define MIXXX_PORTMIDI_BUFFER_LEN 1024 -/** A PortMidi-based implementation of MidiController */ +// String to display for no MIDI devices present +#define MIXXX_PORTMIDI_NO_DEVICE_STRING "None" + +// A PortMidi-based implementation of MidiController class PortMidiController : public MidiController { Q_OBJECT public: |