fix MIDI input not working on ins load preview

issue #2561
This commit is contained in:
tildearrow 2025-06-24 03:34:05 -05:00
parent 38e4245ee0
commit 6d7a354531
3 changed files with 11 additions and 11 deletions

View file

@ -577,7 +577,7 @@ class DivEngine {
DivWorkPool* renderPool;
// MIDI stuff
std::function<int(const TAMidiMessage&)> midiCallback=[](const TAMidiMessage&) -> int {return -2;};
std::function<int(const TAMidiMessage&)> midiCallback=[](const TAMidiMessage&) -> int {return -3;};
void processRowPre(int i);
void processRow(int i, bool afterDelay);
@ -1338,7 +1338,7 @@ class DivEngine {
void setMidiVolExp(float value);
// set MIDI input callback
// if the specified function returns -2, note feedback will be inhibited.
// if the specified function returns -3, note feedback will be inhibited.
void setMidiCallback(std::function<int(const TAMidiMessage&)> what);
// send MIDI message