diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-26 23:16:46 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-26 23:16:46 +0800 |
commit | dfcc193d4070c99bf217ac74a492160968dba766 (patch) | |
tree | 444132b8cf98ef3d8bc7b346f6e5bf515e662f1b /core/qmpmidiplay.cpp | |
parent | 4ffde0ad55d041229793ca4457123bcbcbf8e0c0 (diff) | |
download | QMidiPlayer-dfcc193d4070c99bf217ac74a492160968dba766.tar.xz |
The visualization plugin is usable now...
Diffstat (limited to 'core/qmpmidiplay.cpp')
-rw-r--r-- | core/qmpmidiplay.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/qmpmidiplay.cpp b/core/qmpmidiplay.cpp index ca2878c..5021640 100644 --- a/core/qmpmidiplay.cpp +++ b/core/qmpmidiplay.cpp @@ -196,7 +196,7 @@ void CMidiPlayer::prePlayInit() } void CMidiPlayer::playEvents() { - for(uint32_t ct=midiFile->getEvent(0)->time;tceptr<midiFile->getEventCount();) + for(ct=midiFile->getEvent(0)->time;tceptr<midiFile->getEventCount();) { while(tcpaused)std::this_thread::sleep_for(std::chrono::milliseconds(100)); using namespace std::chrono; @@ -402,6 +402,7 @@ uint32_t CMidiPlayer::getFileStandard(){return midiFile?midiFile->getStandard(): const char* CMidiPlayer::getTitle(){return midiFile?midiFile->getTitle():"";} const char* CMidiPlayer::getCopyright(){return midiFile?midiFile->getCopyright():"";} double CMidiPlayer::getTempo(){return 60./(ctempo/1e6);} +uint32_t CMidiPlayer::getTick(){return ct;} uint32_t CMidiPlayer::getRawTempo(){return ctempo;} uint32_t CMidiPlayer::getDivision(){return divs;} uint32_t CMidiPlayer::getTCpaused(){return tcpaused;} |