From a25823bbc28bfb93f1330d7421bd2589c01386c1 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 18 Jun 2018 22:33:48 +0800 Subject: Precise playback (no more slowdown). Also the visualization should now sync better. --- core/qmpmidiplay.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/qmpmidiplay.hpp') 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; -- cgit v1.2.3