diff --git a/source/jackclient.cc b/source/jackclient.cc index dec016a..7a30de4 100644 --- a/source/jackclient.cc +++ b/source/jackclient.cc @@ -22,6 +22,7 @@ #include #include "jackclient.h" #include "alsathread.h" +#include Jackclient::Jackclient (const char *jname, const char*jserv, int mode, int nchan) : @@ -360,6 +361,11 @@ int Jackclient::jack_process (int nframes) } _t_a1 = D->_timer; _k_a1 += D->_nsamp; +#if 1 + struct timeval now; + gettimeofday(&now, NULL); + printf("WAIT: %ld.%ld -- %f %d\n", now.tv_sec, now.tv_usec , D->_timer, D->_nsamp); +#endif _alsaq->rd_commit (); } } @@ -374,6 +380,11 @@ int Jackclient::jack_process (int nframes) { n = _k_j0 - _k_a0; // Must be done as integer as both terms will overflow. err = n - (_k_a1 - _k_a0) * d1 / d2 + _resamp.inpdist () * _ratio - _delay; +#if 1 + struct timeval now; + gettimeofday(&now, NULL); + printf("PLAY: %ld.%ld -- %f\n", now.tv_sec, now.tv_usec , err); +#endif } else {