Closed pengowray closed 13 years ago
Hi Peter
Thanks for the bug report. I've committed a one-liner that should fix this behavior with stereo samples. We don't use those resample methods that much, so this must have fallen through the cracks.
Thanks for the speedy response!
ResamplingFilter doesn't work correctly for stereo input. Instead it acts as if the value of 'factor' is halved.
Mono resampling works fine.
Background: I'm writing a game in AS3, and would like to randomly change the speed on samples by up to 1.5 to create variability and reduce repetitiveness. I'm using a mix of stereo and mono embedded WAV samples,
Test case: I've made a simple test case. Originally I noticed this problem with samples created with
WaveFile.createSample()
, but I tested it withSineSource
and it has the same problem, so I made a simpler test case (i.e. without embedded WAVs),Hope this library is still being maintained.
Peter Halasz.