- Fix a big bug in the samplerate conversion routine

svn path=/trunk/; revision=42756
This commit is contained in:
Johannes Anderwald 2009-08-17 13:39:20 +00:00
parent 53a7643988
commit fd6d123510

View file

@ -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);
}