diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-04-28 23:41:34 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-04-28 23:41:34 +0800 |
commit | 73020aae5bf0b7dd49c78880e2768deb19181b81 (patch) | |
tree | 5d151fb880c516a921656dcd3e0f812beca67244 /visualization/qmpvisualization.hpp | |
parent | 810e86ec3f49c161e0dabf4a695f06aeb5766c47 (diff) | |
download | QMidiPlayer-73020aae5bf0b7dd49c78880e2768deb19181b81.tar.xz |
Preparation for the visualization renderer.
The visualization should now sync better.
Remove calls to real-time APIs in the visualization loop.
Diffstat (limited to 'visualization/qmpvisualization.hpp')
-rw-r--r-- | visualization/qmpvisualization.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/visualization/qmpvisualization.hpp b/visualization/qmpvisualization.hpp index 34bacc1..a5dad02 100644 --- a/visualization/qmpvisualization.hpp +++ b/visualization/qmpvisualization.hpp @@ -2,6 +2,7 @@ #define QMPVISUALIZATION_H #include <stack> +#include <chrono> #include <thread> #include <utility> #include <vector> @@ -36,11 +37,14 @@ class qmpVisualization:public qmpPluginIntf,public qmpFuncBaseIntf smParticleSystem* pss[16][128]; smPSEmissionPositionGenerator* psepg; float pos[3],rot[3],lastx,lasty; - uint32_t ctc,ctk,elb; + uint32_t ctc,ctk,elb,lstk; + uint32_t cts,cks,ctp; + std::chrono::steady_clock::time_point lst; double etps; bool shouldclose,playing,debug; + bool internal_clock_source; int herh,heh,hfrf; - int uihb,uihs,uihp,uihr; + int uihb,uihs,uihp,uihr,uihk; std::vector<std::pair<uint32_t,uint32_t>>tspool; int traveld[16][128];bool notestatus[16][128],lastnotestatus[16][128]; int spectra[16][128],spectrar[16][128]; |