diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-27 23:45:24 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-27 23:45:24 +0800 |
commit | 8eac5088101595422753030b1b259411d63f83a8 (patch) | |
tree | 43c4c3e9b92657bbf6c7c55cf75d297ec85a5b7f /qmidiplayer-desktop/qmpplugin.cpp | |
parent | dfcc193d4070c99bf217ac74a492160968dba766 (diff) | |
download | QMidiPlayer-8eac5088101595422753030b1b259411d63f83a8.tar.xz |
Handle pitch bend in visualization.
Handle mute and solo in the default visualization.
Show file name in window title.
A little plugin sdk documentaion...
Remove stupid things.
Diffstat (limited to 'qmidiplayer-desktop/qmpplugin.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpplugin.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp index a71b869..837f4db 100644 --- a/qmidiplayer-desktop/qmpplugin.cpp +++ b/qmidiplayer-desktop/qmpplugin.cpp @@ -13,6 +13,12 @@ qmpPluginAPI pluginAPI; qmpMainWindow* qmw; qmpSettingsWindow* qsw; #ifdef _WIN32 +void qmpPluginManager::scanPlugins() +{ + HANDLE dir; + std::vector<std::string> cpluginpaths; + //FindFirstFile, FindNextFile, FindClose +} #else void qmpPluginManager::scanPlugins() { @@ -86,6 +92,13 @@ uint32_t qmpPluginAPI::getMaxPolyphone() {return qmw&&qmw->getPlayer()?qmw->getPlayer()->getMaxPolyphone():0;} uint32_t qmpPluginAPI::getCurrentTimeStamp() {return qmw&&qmw->getPlayer()?qmw->getPlayer()->getTick():0;} +double qmpPluginAPI::getPitchBend(int ch) +{return qmw&&qmw->getPlayer()?qmw->getPlayer()->getPitchBend(ch):0;} +bool qmpPluginAPI::getChannelMask(int ch) +{return qmw&&qmw->getPlayer()?qmw->getPlayer()->getChannelMask(ch):false;} +std::string qmpPluginAPI::getTitle() +{return qmw?qmw->getTitle():"";} + int qmpPluginAPI::registerEventHandlerIntf(IMidiCallBack *cb,void *userdata) {return qmw->getPlayer()->setEventHandlerCB(cb,userdata);} void qmpPluginAPI::unregisterEventHandlerIntf(int intfhandle) |