aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-06-02 23:38:43 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-06-02 23:38:43 +0800
commit8aa8574504acdab46ee378d9c6eaaf3f641c2bac (patch)
tree7dcbd9a4076786b025d2ef05aeae73ebcf4f6ba7 /qmidiplayer-desktop
parentd97a417012d7e510b08c2e7d9a71997605c48e88 (diff)
downloadQMidiPlayer-8aa8574504acdab46ee378d9c6eaaf3f641c2bac.tar.xz
Add option to change note colors.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r--qmidiplayer-desktop/qmpplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp
index 99ac92f..1ffd32c 100644
--- a/qmidiplayer-desktop/qmpplugin.cpp
+++ b/qmidiplayer-desktop/qmpplugin.cpp
@@ -151,8 +151,8 @@ std::string qmpPluginAPI::getChannelPresetString(int ch)
return std::string(ret);
}
-void qmpPluginAPI::discardLastEvent(){}
-void qmpPluginAPI::commitEventChange(SEventCallBackData){}
+void qmpPluginAPI::discardLastEvent(){if(qmw&&qmw->getPlayer())qmw->getPlayer()->discardLastEvent();}
+void qmpPluginAPI::commitEventChange(SEventCallBackData d){if(qmw&&qmw->getPlayer())qmw->getPlayer()->commitEventChange(d);}
int qmpPluginAPI::registerEventHandlerIntf(IMidiCallBack *cb,void *userdata)
{return qmw->getPlayer()->setEventHandlerCB(cb,userdata);}