I'm using SoundPool in my Android app to play sound effects. When I call play() with loop = -1 to loop the sound continuously, I try to adjust the playback rate using setRate() based on user input, but it doesn't work.
What's strange is that setVolume() works fine, but setRate() has no effect. Even more interestingly, if I set the rate parameter when initially calling play(), it plays at the specified rate.
This issue doesn't happen with all my audio files — only with a few specific ones. All my sound files are in the .wav format.
How can I resolve this?
Thanks in advance!