On 03/20/2012 01:33 PM, michael noble wrote:
> On Tue, Mar 20, 2012 at 9:17 PM, Fons Adriaensen <[email protected]>wrote:
>
>>
>> There is still a bug that makes the loop filter unstable if Jack's
>> period size is 1024 or more. It's already fixed and being tested
>> here, and you can expect and update soon, but meanwhile you should
>> have Jack's -p < 1024.
>>
>>
> Running with a period size of 256 here and still not getting output. Is
> there something else I can do tell track down why I'm not getting any
> output?
>
Apply attached patch, and sent the output to Fons :)
robin
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 <math.h>
#include "jackclient.h"
#include "alsathread.h"
+#include <sys/time.h>
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
{
_______________________________________________
Linux-audio-dev mailing list
[email protected]
http://lists.linuxaudio.org/listinfo/linux-audio-dev