diff --git a/tools/Makefile.am b/tools/Makefile.am index b69fde2..4b9eaf3 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -128,12 +128,12 @@ jack_netsource_LDADD = $(top_builddir)/libjack/libjack.la if HAVE_SAMPLERATE if HAVE_ALSA -alsa_in_SOURCES = alsa_in.c time_smoother.c +alsa_in_SOURCES = alsa_in.c alsa_in_CFLAGS = @NETJACK_CFLAGS@ alsa_in_LDFLAGS = -lasound -lsamplerate @OS_LDFLAGS@ alsa_in_LDADD = $(top_builddir)/libjack/libjack.la -alsa_out_SOURCES = alsa_out.c time_smoother.c +alsa_out_SOURCES = alsa_out.c alsa_out_CFLAGS = @NETJACK_CFLAGS@ alsa_out_LDFLAGS = -lasound -lsamplerate @OS_LDFLAGS@ alsa_out_LDADD = $(top_builddir)/libjack/libjack.la diff --git a/tools/alsa_in.c b/tools/alsa_in.c index 5c53246..7629d46 100644 --- a/tools/alsa_in.c +++ b/tools/alsa_in.c @@ -19,7 +19,6 @@ #include "alsa/asoundlib.h" #include -#include "time_smoother.h" typedef signed short ALSASAMPLE; @@ -40,7 +39,6 @@ int jack_sample_rate; double current_resample_factor = 1.0; -time_smoother *smoother; // ------------------------------------------------------ commandline parameters @@ -538,13 +536,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; diff --git a/tools/alsa_out.c b/tools/alsa_out.c index 6f4167c..0392514 100644 --- a/tools/alsa_out.c +++ b/tools/alsa_out.c @@ -22,7 +22,6 @@ #include "alsa/asoundlib.h" #include -#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;