From 35c11a94243cb1002aa7d06722d4f4acdf08a5f5 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Fri, 19 Feb 2016 18:20:29 +1100 Subject: [PATCH] alsa: Whitespace only --- alsa_in.c | 16 ++++++++-------- alsa_out.c | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/alsa_in.c b/alsa_in.c index 8dd13c6..87a626e 100644 --- a/alsa_in.c +++ b/alsa_in.c @@ -312,7 +312,7 @@ void freewheel (int freewheel_starting, void *ignored_arg) if( freewheel_starting ) { snd_pcm_close( alsa_handle ); alsa_handle = 0; - // reset resampling parameters + // reset resampling parameters resample_mean = 1.0; static_resample_factor = 1.0; resample_lower_limit = 0.25; @@ -342,7 +342,7 @@ int process (jack_nframes_t nframes, void *arg) { /* freewheeling, or some other error */ return 0; } - + delay = snd_pcm_avail( alsa_handle ); delay -= jack_frames_since_cycle_start( client ); @@ -363,7 +363,7 @@ int process (jack_nframes_t nframes, void *arg) { // Set the resample_rate... we need to adjust the offset integral, to do this. // first look at the PI controller, this code is just a special case, which should never execute once - // everything is swung in. + // everything is swung in. offset_integral = - (resample_mean - static_resample_factor) * catch_factor * catch_factor2; // Also clear the array. we are beginning a new control cycle. for( i=0; i target_delay ) { fprintf( stderr, "target_delay (%d) cant be smaller than max_diff(%d)\n", target_delay, max_diff ); diff --git a/alsa_out.c b/alsa_out.c index 47779d1..defbbe2 100644 --- a/alsa_out.c +++ b/alsa_out.c @@ -298,10 +298,10 @@ static snd_pcm_t *open_audiofd( char *device_name, int capture, int rate, int ch //snd_pcm_start( handle ); //snd_pcm_wait( handle, 200 ); int num_null_samples = nperiods * period * channels; - char *tmp = alloca( num_null_samples * formats[format].sample_size ); + char *tmp = alloca( num_null_samples * formats[format].sample_size ); memset( tmp, 0, num_null_samples * formats[format].sample_size ); snd_pcm_writei( handle, tmp, num_null_samples ); - + return handle; } @@ -336,7 +336,7 @@ int process (jack_nframes_t nframes, void *arg) { // Set the resample_rate... we need to adjust the offset integral, to do this. // first look at the PI controller, this code is just a special case, which should never execute once - // everything is swung in. + // everything is swung in. offset_integral = - (resample_mean - static_resample_factor) * catch_factor * catch_factor2; // Also clear the array. we are beginning a new control cycle. for( i=0; i target_delay ) { fprintf( stderr, "target_delay (%d) cant be smaller than max_diff(%d)\n", target_delay, max_diff );