diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-09-15 23:46:17 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-09-15 23:46:17 +0800 |
commit | e12b8c202f92d1b154ed3d9cb5dc58c73aa08787 (patch) | |
tree | 7c32b9a03ef5d45f84344212756cb097971d9aee /qmidiplayer-desktop | |
parent | d62356c08e23c6971d2996866eb6bdf43000520b (diff) | |
download | QMidiPlayer-e12b8c202f92d1b154ed3d9cb5dc58c73aa08787.tar.xz |
Add a new visualization mode. Fix minor behavioral bugs.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r-- | qmidiplayer-desktop/qmpplugin.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp index 1ffd32c..7193ade 100644 --- a/qmidiplayer-desktop/qmpplugin.cpp +++ b/qmidiplayer-desktop/qmpplugin.cpp @@ -130,6 +130,18 @@ uint32_t qmpPluginAPI::getCurrentTimeStamp() {return qmw&&qmw->getPlayer()?qmw->getPlayer()->getTick():0;} uint32_t qmpPluginAPI::getCurrentPlaybackPercentage() {return qmw?qmw->getPlaybackPercentage():0;} +int qmpPluginAPI::getChannelCC(int ch,int cc) +{return qmw&&qmw->getPlayer()?qmw->getPlayer()->getCC(ch,cc):0;} +int qmpPluginAPI::getChannelPreset(int ch) +{ + int b,p;char nm[25],ret[33];ret[0]=0; + if(qmw&&qmw->getPlayer()) + { + qmw->getPlayer()->getChannelPreset(ch,&b,&p,nm); + return p; + } + return 0; +} void qmpPluginAPI::playerSeek(uint32_t percentage) {if(qmw)qmw->playerSeek(percentage);} double qmpPluginAPI::getPitchBend(int ch) |