From fd6d1235106a3db7fb8cc7a55d5c5132ea09a44e Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Mon, 17 Aug 2009 13:39:20 +0000 Subject: [PATCH] - Fix a big bug in the samplerate conversion routine svn path=/trunk/; revision=42756 --- reactos/drivers/wdm/audio/filters/kmixer/pin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/wdm/audio/filters/kmixer/pin.c b/reactos/drivers/wdm/audio/filters/kmixer/pin.c index 13ce650a086..f52a7557034 100644 --- a/reactos/drivers/wdm/audio/filters/kmixer/pin.c +++ b/reactos/drivers/wdm/audio/filters/kmixer/pin.c @@ -127,13 +127,13 @@ PerformSampleRateConversion( { PUSHORT Res = (PUSHORT)ResultOut; - src_float_to_short_array(FloatIn, (short*)Res, Data.output_frames_gen * NumChannels); + src_float_to_short_array(FloatOut, (short*)Res, Data.output_frames_gen * NumChannels); } else if (BytesPerSample == 4) { PULONG Res = (PULONG)ResultOut; - src_float_to_int_array(FloatIn, (int*)Res, Data.output_frames_gen * NumChannels); + src_float_to_int_array(FloatOut, (int*)Res, Data.output_frames_gen * NumChannels); }