Add timing debug options
parent
a0cca4d78f
commit
b0b3a3c4e5
|
@ -45,6 +45,9 @@
|
|||
// Jack print controller out MIDI, loading etc
|
||||
//#define DEBUG_MIDI 1
|
||||
|
||||
// print out few information about looper timing
|
||||
#define DEBUG_TIME 1
|
||||
|
||||
|
||||
/// GENERAL
|
||||
#define NTRACKS 8
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
|
||||
#include <cmath>
|
||||
|
||||
#ifdef DEBUG_TIME
|
||||
#include <iomanip>
|
||||
#endif
|
||||
|
||||
#include "jack.hxx"
|
||||
#include "audiobuffer.hxx"
|
||||
#include "eventhandler.hxx"
|
||||
|
@ -135,6 +139,10 @@ void Looper::process(unsigned int nframes, Buffers* buffers)
|
|||
|
||||
if ( targetFrames != 0 && actualFrames != 0 ) {
|
||||
playSpeed = float(actualFrames) / targetFrames;
|
||||
|
||||
#ifdef DEBUG_TIME
|
||||
cout << fixed << setprecision(20) << playSpeed << "\n";
|
||||
#endif
|
||||
}
|
||||
|
||||
// index = first-track + (track * channels)
|
||||
|
|
Loading…
Reference in New Issue