diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-05-01 17:25:08 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-05-01 17:25:08 +0800 |
commit | afeb558e50ad8d80f044439d39193d1cbc566580 (patch) | |
tree | b5a692ee2994ced73a3d5832857db1a5e4597b88 /visualization/renderer/qmppluginapistub.cpp | |
parent | 893bec26cd1bc83fd85bb7dfdfd6225d9f6ee5b5 (diff) | |
download | QMidiPlayer-afeb558e50ad8d80f044439d39193d1cbc566580.tar.xz |
Fixed visualization viewport randomly reverting to default.
Fixed unexpected pitch wheel activity in rendered video.
Remove type checking in the option syntax.
Diffstat (limited to 'visualization/renderer/qmppluginapistub.cpp')
-rw-r--r-- | visualization/renderer/qmppluginapistub.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/visualization/renderer/qmppluginapistub.cpp b/visualization/renderer/qmppluginapistub.cpp index d37e191..1be4880 100644 --- a/visualization/renderer/qmppluginapistub.cpp +++ b/visualization/renderer/qmppluginapistub.cpp @@ -79,12 +79,16 @@ int qmpPluginAPIStub::registerUIHook(std::string e, callback_t cb, void *userdat { if(e=="main.start") core->startcb=cb; + if(e=="main.reset") + core->resetcb=cb; return 0; } void qmpPluginAPIStub::unregisterUIHook(std::string e, int hook) { if(e=="main.start") core->startcb=nullptr; + if(e=="main.reset") + core->resetcb=nullptr; } void qmpPluginAPIStub::registerMidiOutDevice(qmpMidiOutDevice *dev, std::string name){} |