Add timing debug options

main
Georg Krause 2018-06-08 18:26:55 +02:00
parent a0cca4d78f
commit b0b3a3c4e5
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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)