|
|
|
@@ -22,7 +22,6 @@ |
|
|
|
#include "alsa/asoundlib.h" |
|
|
|
|
|
|
|
#include <samplerate.h> |
|
|
|
#include "time_smoother.h" |
|
|
|
|
|
|
|
#define SAMPLE_16BIT_SCALING 32767.0f |
|
|
|
#define SAMPLE_16BIT_MAX 32767 |
|
|
|
@@ -59,8 +58,6 @@ int jack_sample_rate; |
|
|
|
|
|
|
|
double current_resample_factor = 1.0; |
|
|
|
|
|
|
|
time_smoother *smoother; |
|
|
|
|
|
|
|
// ------------------------------------------------------ commandline parameters |
|
|
|
|
|
|
|
int sample_rate = 0; /* stream rate */ |
|
|
|
@@ -563,13 +560,6 @@ int main (int argc, char *argv[]) { |
|
|
|
if( !max_diff ) |
|
|
|
max_diff = period_size / 2; |
|
|
|
|
|
|
|
smoother = time_smoother_new( 100 ); |
|
|
|
if( !smoother ) { |
|
|
|
fprintf (stderr, "no memory\n"); |
|
|
|
return 10; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ((client = jack_client_new (jack_name)) == 0) { |
|
|
|
fprintf (stderr, "jack server not running?\n"); |
|
|
|
return 1; |
|
|
|
|