(audio/resamplers/nearest) Nit

This commit is contained in:
twinaphex 2015-01-06 22:54:52 +01:00
parent 0f38b0c0eb
commit 4c3d0fea3b

View File

@ -19,13 +19,11 @@ typedef struct rarch_nearest_resampler
static void resampler_nearest_process(
void *re_, struct resampler_data *data)
{
float ratio;
rarch_nearest_resampler_t *re = (rarch_nearest_resampler_t*)re_;
audio_frame_float_t *inp = (audio_frame_float_t*)data->data_in;
audio_frame_float_t *inp_max = (audio_frame_float_t*)inp + data->input_frames;
audio_frame_float_t *outp = (audio_frame_float_t*)data->data_out;
ratio = 1.0 / data->ratio;
float ratio = 1.0 / data->ratio;
while(inp != inp_max)
{