aboutsummaryrefslogtreecommitdiff
path: root/core/qmpmidiplay.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-06-18 22:33:48 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-06-18 22:33:48 +0800
commita25823bbc28bfb93f1330d7421bd2589c01386c1 (patch)
treeaa5ceffaff372b1f18d51bd5ab702ae977f2293c /core/qmpmidiplay.hpp
parent9e228490ffc7deb2969fa5e2b5fd81d763986eed (diff)
downloadQMidiPlayer-a25823bbc28bfb93f1330d7421bd2589c01386c1.tar.xz
Precise playback (no more slowdown).
Also the visualization should now sync better.
Diffstat (limited to 'core/qmpmidiplay.hpp')
-rw-r--r--core/qmpmidiplay.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/qmpmidiplay.hpp b/core/qmpmidiplay.hpp
index 99e0d07..f054238 100644
--- a/core/qmpmidiplay.hpp
+++ b/core/qmpmidiplay.hpp
@@ -63,8 +63,9 @@ class CMidiPlayer
bool sendSysEx,waitvoice;
uint8_t chstate[16],chstatus[16][130];//0..127: cc 128: pc
qmpMidiOutFluid* internalFluid;
- uint32_t ctempo,ctsn,ctsd,dpt,divs,cks;
- //raw tempo, timesig num., timesig den., delay per tick, division, keysig
+ uint32_t ctempo,ctsn,ctsd,divs,cks;
+ double dpt;//time per tick
+ //raw tempo, timesig num., timesig den., division, keysig
//thread control
uint32_t tceptr,tcpaused,tcstop,ct;
uint32_t finished,resumed;