diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-12-14 01:14:20 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-12-14 01:14:20 +0800 |
commit | fcd13f9b227d80e066775f75b09bc6ec9337bfc8 (patch) | |
tree | 5d673da6cd88275cc03d771c13fa508de9c595be /visualization | |
parent | 8ea9ca158e8a113f38c22fbfa93ad99277b51d26 (diff) | |
download | QMidiPlayer-fcd13f9b227d80e066775f75b09bc6ec9337bfc8.tar.xz |
Add unified interface for retrieving playback status.
This should make several methods obsolete, however I'm too lazy
to migrate them right now. So one more item on the todo list I guess.
Diffstat (limited to 'visualization')
-rw-r--r-- | visualization/renderer/qmppluginapistub.cpp | 5 | ||||
-rw-r--r-- | visualization/renderer/qmppluginapistub.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/visualization/renderer/qmppluginapistub.cpp b/visualization/renderer/qmppluginapistub.cpp index b84a2b6..ae424b4 100644 --- a/visualization/renderer/qmppluginapistub.cpp +++ b/visualization/renderer/qmppluginapistub.cpp @@ -59,6 +59,11 @@ uint32_t qmpPluginAPIStub::getCurrentPlaybackPercentage() { return 0; } + +PlaybackStatus qmpPluginAPIStub::getPlaybackStatus() +{ + return {false, 0, 0, 0, 0}; +} int qmpPluginAPIStub::getChannelCC(int ch, int cc) { return 0; diff --git a/visualization/renderer/qmppluginapistub.hpp b/visualization/renderer/qmppluginapistub.hpp index 4a9024d..ede08d3 100644 --- a/visualization/renderer/qmppluginapistub.hpp +++ b/visualization/renderer/qmppluginapistub.hpp @@ -20,6 +20,7 @@ public: uint32_t getMaxPolyphone(); uint32_t getCurrentTimeStamp(); uint32_t getCurrentPlaybackPercentage(); + PlaybackStatus getPlaybackStatus(); int getChannelCC(int ch, int cc); int getChannelPreset(int ch); void playerSeek(uint32_t percentage); |