Browse Source

[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
tags/0.117.0
torben 16 years ago
parent
commit
80c0630e08
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tools/alsa_out.c

+ 2
- 1
tools/alsa_out.c View File

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



Loading…
Cancel
Save