diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-11-11 23:38:09 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-11-11 23:38:09 +0800 |
commit | b4c4cefb706f9c43a54fecb18cb8ee50f0f0e19a (patch) | |
tree | c62673b5462240cacb8cbd144a654e811ba7bceb /simple-visualization | |
parent | 9f139f5807c3c18a77ebaa8e646355c19dca5ca9 (diff) | |
download | QMidiPlayer-b4c4cefb706f9c43a54fecb18cb8ee50f0f0e19a.tar.xz |
New UI hook "main.seek". Fix SysExc. message sending. API documentation update.
Simple visualization no longer have notes stuck after seeking.
System exclusive messages longer than 256 bytes are now sent correctly.
Diffstat (limited to 'simple-visualization')
-rw-r--r-- | simple-visualization/simplevisualization.cpp | 2 | ||||
-rw-r--r-- | simple-visualization/simplevisualization.hpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/simple-visualization/simplevisualization.cpp b/simple-visualization/simplevisualization.cpp index d45d101..71dac7a 100644 --- a/simple-visualization/simplevisualization.cpp +++ b/simple-visualization/simplevisualization.cpp @@ -14,12 +14,14 @@ void qmpSimpleVisualization::init() } p=new qmpKeyboardWindow(api,(QWidget*)api->getMainWindow()); uihs=api->registerUIHook("main.stop",[this](const void*,void*){this->p->resetAll();},nullptr); + uihsk=api->registerUIHook("main.seek",[this](const void*,void*){this->p->resetAll();},nullptr); } void qmpSimpleVisualization::deinit() { if(!api)return;close(); api->unregisterFunctionality("Keyboard"); api->unregisterUIHook("main.stop",uihs); + api->unregisterUIHook("main.seek",uihsk); delete p; } const char* qmpSimpleVisualization::pluginGetName() diff --git a/simple-visualization/simplevisualization.hpp b/simple-visualization/simplevisualization.hpp index d79eef0..58b02ac 100644 --- a/simple-visualization/simplevisualization.hpp +++ b/simple-visualization/simplevisualization.hpp @@ -10,6 +10,7 @@ class qmpSimpleVisualization:public qmpPluginIntf,public qmpFuncBaseIntf qmpPluginAPI* api; qmpKeyboardWindow *p; int uihs; + int uihsk; public: qmpSimpleVisualization(qmpPluginAPI* _api); void show(); |