cleanup setHandleMessage

unfortunately, not using aliases yet (too complex)
This commit is contained in:
lathoub 2020-03-18 07:06:02 +01:00
parent c09c8e8148
commit e4ad19d40e
2 changed files with 1 additions and 7 deletions

View File

@ -167,7 +167,7 @@ public:
// Input Callbacks
public:
inline void setHandleMessage(void (*fptr)(const MidiMessage&));
inline void setHandleMessage(void (*fptr)(const MidiMessage&)) { mMessageCallback = fptr; };
inline void setHandleNoteOff(NoteOffCallback fptr) { mNoteOffCallback = fptr; }
inline void setHandleNoteOn(NoteOnCallback fptr) { mNoteOnCallback = fptr; }
inline void setHandleAfterTouchPoly(AfterTouchPolyCallback fptr) { mAfterTouchPolyCallback = fptr; }

View File

@ -1176,12 +1176,6 @@ bool MidiInterface<Transport, Settings, Platform>::isChannelMessage(MidiType inT
// -----------------------------------------------------------------------------
/*! \addtogroup callbacks
@{
*/
template<class Transport, class Settings, class Platform> void MidiInterface<Transport, Settings, Platform>::setHandleMessage(void (*fptr)(const MidiMessage&)) { mMessageCallback = fptr; }
/*! \brief Detach an external function from the given type.
Use this method to cancel the effects of setHandle********.