keinstein / mutabor

Perform dynamic tunings in realtime music or use them for procesing MIDI files
http://www.math.tu-dresden.de/~mutabor
GNU General Public License v2.0
6 stars 1 forks source link

implement getCallback and warn from RtMidiCompatibility classes. #15

Open keinstein opened 3 years ago

keinstein commented 3 years ago

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.