Browse Source

[alsa-out] another fix for alsa out. now it really should be fixed.

haha... i thought that too often. but resampling is really going
down to almost zero now.

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3313 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.117.0
torben 17 years ago
parent
commit
fa17daf77c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tools/alsa_out.c

+ 3
- 3
tools/alsa_out.c View File

@@ -312,9 +312,9 @@ int process (jack_nframes_t nframes, void *arg) {

//if( periods_until_stability ) {
if( 1 ) {
double resamp_rate = (double)jack_sample_rate / (double)sample_rate; // == nframes / alsa_samples.
double request_samples = nframes / resamp_rate; //== alsa_samples;
//double request_samples = nframes * current_resample_factor; //== alsa_samples;
//double resamp_rate = (double)sample_rate / (double)jack_sample_rate; // == nframes / alsa_samples.
//double request_samples = nframes / resamp_rate; //== alsa_samples;
double request_samples = nframes * current_resample_factor; //== alsa_samples;

offset = delay - target_delay;



Loading…
Cancel
Save