diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-09-10 23:55:48 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-09-10 23:55:48 +0800 |
commit | aec5e972e8968255e8843eb22314b96a8f23b041 (patch) | |
tree | 55990275b78a10188f7ec08436e748cc01461a91 /core/qmpmidiplay.hpp | |
parent | 1e0c10a001c61d27b210ae87652be849cbd5bcfe (diff) | |
download | QMidiPlayer-aec5e972e8968255e8843eb22314b96a8f23b041.tar.xz |
We refactorin', eh? Hell yeah.
(Almost) Completely rewritten qmpChannelsWindow, one of the oldest
component, now with a dedicated data model.
Removed dumb design (CMidiPlayer::getChstates).
Now QMidiPlayer requires C++14 to build.
More refactoring like this coming up soon.
Diffstat (limited to 'core/qmpmidiplay.hpp')
-rw-r--r-- | core/qmpmidiplay.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/qmpmidiplay.hpp b/core/qmpmidiplay.hpp index da9e9ef..4d950fa 100644 --- a/core/qmpmidiplay.hpp +++ b/core/qmpmidiplay.hpp @@ -64,7 +64,7 @@ class CMidiPlayer uint16_t mute,solo; double ftime; bool sendSysEx,waitvoice; - uint8_t chstate[16],chstatus[16][130];//0..127: cc 128: pc + uint8_t chstatus[16][130];//0..127: cc 128: pc qmpMidiOutFluid* internalFluid; uint32_t ctempo,ctsn,ctsd,divs,cks; double dpt;//time per tick @@ -76,6 +76,7 @@ class CMidiPlayer //playback correction uint32_t ttick; std::chrono::high_resolution_clock::time_point ttime; + std::chrono::system_clock::time_point levtt[16]; struct SMidiDev { std::string name; @@ -155,7 +156,7 @@ class CMidiPlayer int getChannelOutput(int ch); qmpMidiOutDevice* getChannelOutputDevice(int ch); void setChannelOutput(int ch,int outid); - uint8_t* getChstates(); + const std::chrono::system_clock::time_point* getLastEventTS(); int setEventHandlerCB(ICallBack *cb,void *userdata); void unsetEventHandlerCB(int id); int setEventReaderCB(ICallBack *cb,void *userdata); |