From d32f63b6ed9f40763bfcdf690fc03355d5b256e0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 13 Sep 2014 01:48:33 +0200 Subject: [PATCH] (nearest.c) style nits --- audio/resamplers/nearest.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/audio/resamplers/nearest.c b/audio/resamplers/nearest.c index ed5b703a18..704ea69299 100644 --- a/audio/resamplers/nearest.c +++ b/audio/resamplers/nearest.c @@ -18,7 +18,8 @@ typedef struct rarch_nearest_resampler }rarch_nearest_resampler_t; -static void resampler_nearest_process(void *re_, struct resampler_data *data) +static void resampler_nearest_process(void *re_, + struct resampler_data *data) { (void)re_; float ratio; @@ -38,8 +39,10 @@ static void resampler_nearest_process(void *re_, struct resampler_data *data) ratio = 1.0/data->ratio; - while(inp!=inp_max){ - while(re->fraction>1){ + while(inp != inp_max) + { + while(re->fraction > 1) + { *outp++=*inp; re->fraction-=ratio; } @@ -59,7 +62,8 @@ static void resampler_nearest_free(void *re_) static void *resampler_nearest_init(double bandwidth_mod) { - rarch_nearest_resampler_t *re = (rarch_nearest_resampler_t*)calloc(1, sizeof(rarch_nearest_resampler_t)); + rarch_nearest_resampler_t *re = (rarch_nearest_resampler_t*) + calloc(1, sizeof(rarch_nearest_resampler_t)); if (!re) return NULL;