diff options
| author | Volker Fischer <corrados@users.noreply.github.com> | 2022-09-28 22:33:43 +0200 | 
|---|---|---|
| committer | Volker Fischer <corrados@users.noreply.github.com> | 2022-09-28 22:33:43 +0200 | 
| commit | 4ef99150acbc92612a9aafbce7b6f73614ed63dc (patch) | |
| tree | 28b5b45b50eed707ea090f3b709c19e49aede9b5 | |
| parent | a8f54f02291ef16f255abe9aee5bfaaef4903035 (diff) | |
jack midi input port should not clear the buffer
| -rw-r--r-- | drumgizmo/input/jackmidi.cc | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/drumgizmo/input/jackmidi.cc b/drumgizmo/input/jackmidi.cc index 445678b..39aebf8 100644 --- a/drumgizmo/input/jackmidi.cc +++ b/drumgizmo/input/jackmidi.cc @@ -122,6 +122,12 @@ void JackMidiInputEngine::process(jack_nframes_t num_frames)  		jack_midi_event_get(&event, buffer, i);  		processNote(event.buffer, event.size, event.time, events);  	} -	jack_midi_clear_buffer(buffer); + +	// Disable clear buffer on input port because for Edrumulus usage we need that +	// two clients use the some output buffer and if we clear it here, the other +	// application will not get any MIDI input signal. Usually, the output port +	// is responsible for clearing the buffer, not the input port. +	//jack_midi_clear_buffer(buffer); +  	pos += num_frames;  }  | 
