From 252a8c183a7f130bbe70dc3ebc14dba81378b3ba Mon Sep 17 00:00:00 2001 From: Tele42 Date: Mon, 9 Feb 2015 11:33:03 -0500 Subject: [PATCH 1/3] Trivial proofreading --- alsa_in.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/alsa_in.c b/alsa_in.c index 8dd13c6..f6ef30f 100644 --- a/alsa_in.c +++ b/alsa_in.c @@ -176,7 +176,7 @@ static int set_hwparams(snd_pcm_t *handle, snd_pcm_hw_params_t *params, snd_pcm_ return err; } if (rchannels != channels) { - printf("WARNING: chennel count does not match (requested %d got %d)\n", channels, rchannels); + printf("WARNING: channels count does not match (requested %d got %d)\n", channels, rchannels); num_channels = rchannels; } /* set the stream rate */ @@ -391,7 +391,7 @@ int process (jack_nframes_t nframes, void *arg) { offset_array[(offset_differential_index++)% smooth_size ] = offset; // Build the mean of the windowed offset array - // basically fir lowpassing. + // basically for lowpassing. double smooth_offset = 0.0; for( i=0; i resample_upper_limit ) current_resample_factor = resample_upper_limit; - // Now Calculate how many samples we need. + // Now calculate how many samples we need. rlen = ceil( ((double)nframes) / current_resample_factor )+2; assert( rlen > 2 ); From 1257a8b847b066f5185c3c2a76b9d86048aeaf6f Mon Sep 17 00:00:00 2001 From: Tele42 Date: Thu, 12 Feb 2015 11:26:45 -0500 Subject: [PATCH 2/3] Trivial proofreading in alsa_out.c --- alsa_out.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/alsa_out.c b/alsa_out.c index 47779d1..851b375 100644 --- a/alsa_out.c +++ b/alsa_out.c @@ -175,7 +175,7 @@ static int set_hwparams(snd_pcm_t *handle, snd_pcm_hw_params_t *params, snd_pcm_ return err; } if (rchannels != channels) { - printf("WARNING: chennel count does not match (requested %d got %d)\n", channels, rchannels); + printf("WARNING: channel count does not match (requested %d got %d)\n", channels, rchannels); num_channels = rchannels; } /* set the stream rate */ @@ -246,7 +246,7 @@ static int set_swparams(snd_pcm_t *handle, snd_pcm_sw_params_t *swparams, int pe } err = snd_pcm_sw_params_set_stop_threshold(handle, swparams, -1 ); if (err < 0) { - printf("Unable to set start threshold mode for capture: %s\n", snd_strerror(err)); + printf("Unable to set stop threshold mode for capture: %s\n", snd_strerror(err)); return err; } /* allow the transfer when at least period_size samples can be processed */ @@ -371,7 +371,7 @@ int process (jack_nframes_t nframes, void *arg) { offset_array[(offset_differential_index++)% smooth_size ] = offset; // Build the mean of the windowed offset array - // basically fir lowpassing. + // basically for lowpassing. double smooth_offset = 0.0; for( i=0; i resample_upper_limit ) current_resample_factor = resample_upper_limit; - // Now Calculate how many samples we need. + // Now calculate how many samples we need. rlen = ceil( ((double)nframes) * current_resample_factor )+2; assert( rlen > 2 ); From a021d3a168444456e140ccc24777882c9d7a7bd7 Mon Sep 17 00:00:00 2001 From: Tele42 Date: Thu, 12 Feb 2015 11:31:26 -0500 Subject: [PATCH 3/3] trivial copy/paste typo in alsa_in.c --- alsa_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsa_in.c b/alsa_in.c index f6ef30f..91b37a9 100644 --- a/alsa_in.c +++ b/alsa_in.c @@ -247,7 +247,7 @@ static int set_swparams(snd_pcm_t *handle, snd_pcm_sw_params_t *swparams, int pe } err = snd_pcm_sw_params_set_stop_threshold(handle, swparams, -1 ); if (err < 0) { - printf("Unable to set start threshold mode for capture: %s\n", snd_strerror(err)); + printf("Unable to set stop threshold mode for capture: %s\n", snd_strerror(err)); return err; } /* allow the transfer when at least period_size samples can be processed */