Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions alsa_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ int process (jack_nframes_t nframes, void *arg) {

delay = snd_pcm_avail( alsa_handle );

delay -= jack_frames_since_cycle_start( client );
delay -= round( jack_frames_since_cycle_start( client ) / static_resample_factor );
// Do it the hard way.
// this is for compensating xruns etc...

Expand Down Expand Up @@ -502,7 +502,7 @@ latency_cb (jack_latency_callback_mode_t mode, void *arg)
jack_latency_range_t range;
JSList *node;

range.min = range.max = target_delay;
range.min = range.max = round(target_delay * static_resample_factor);

if (mode == JackCaptureLatency) {
for (node = capture_ports; node; node = jack_slist_next (node)) {
Expand Down
4 changes: 2 additions & 2 deletions alsa_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ int process (jack_nframes_t nframes, void *arg) {

delay = (num_periods*period_size)-snd_pcm_avail( alsa_handle ) ;

delay -= jack_frames_since_cycle_start( client );
delay -= round( jack_frames_since_cycle_start( client ) * static_resample_factor );
// Do it the hard way.
// this is for compensating xruns etc...

Expand Down Expand Up @@ -480,7 +480,7 @@ latency_cb (jack_latency_callback_mode_t mode, void *arg)
jack_latency_range_t range;
JSList *node;

range.min = range.max = target_delay;
range.min = range.max = round(target_delay / static_resample_factor);

if (mode == JackCaptureLatency) {
for (node = capture_ports; node; node = jack_slist_next (node)) {
Expand Down