mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
- Fix a big bug in the samplerate conversion routine
svn path=/trunk/; revision=42756
This commit is contained in:
parent
53a7643988
commit
fd6d123510
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue