rspeyer / soundtouch

SoundTouch library compiled for iOS http://www.surina.net/soundtouch/index.html
GNU Lesser General Public License v2.1
313 stars 88 forks source link

Changing the pitch makes noise #10

Open Code-Lonely opened 2 years ago

Code-Lonely commented 2 years ago

Hello, author. I have successfully transplanted SoundTouch to Android, and I want to achieve a player that supports tune-changing and unvariable speed. I use FFMPEG in JavacV to decode audio, and then play PCM data through AudioTrack after obtaining PCM data. However, when I use SoundTouch for audio modulation, my audio is two-channel, and I set soundTouch to stereo mode, but it plays with noise. If I set SoundTouch to mono, I don't have this problem, but there is a slight hum when I lower the pitch. Do you know what the problem is ?

Here is my sample program image image