RtMidi issues a warning when the MIDI callback is set twice. This is checked against a null pointer.
The actual interface does not set a callback and implements polling using a callback class. So the null pointer check does not work anymore.
The compatibily class should check the current callback against its queue address so it needs to retrieve the callback from the backend.
RtMidi issues a warning when the MIDI callback is set twice. This is checked against a null pointer. The actual interface does not set a callback and implements polling using a callback class. So the null pointer check does not work anymore.
The compatibily class should check the current callback against its queue address so it needs to retrieve the callback from the backend.