mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- Fix a big bug in the samplerate conversion routine
svn path=/trunk/; revision=42756
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user