admin管理员组文章数量:1398832
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!
本文标签: Android SoundPool setRate Not Working on Specific WAV FilesStack Overflow
版权声明:本文标题:Android SoundPool setRate Not Working on Specific WAV Files - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744092670a2589711.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论