From 80c0630e08fc0bbc6743bc2a20a13df01cf209c2 Mon Sep 17 00:00:00 2001 From: torben Date: Fri, 1 May 2009 17:52:08 +0000 Subject: [PATCH] [alsa_out] make latency constant. subtract frames_since cycle start from off git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3523 0c269be4-1314-0410-8aa9-9f06e86f4224 --- tools/alsa_out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/alsa_out.c b/tools/alsa_out.c index 1fff2d3..f0995ed 100644 --- a/tools/alsa_out.c +++ b/tools/alsa_out.c @@ -318,7 +318,8 @@ int process (jack_nframes_t nframes, void *arg) { snd_pcm_delay( alsa_handle, &delay ); - //delay -= jack_frames_since_cycle_start( client ); + delay -= jack_frames_since_cycle_start( client ); + delay += jack_get_buffer_size( client ) / 2; // Do it the hard way. // this is for compensating xruns etc...