最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Android SoundPool setRate Not Working on Specific WAV Files - Stack Overflow

programmeradmin5浏览0评论

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!

发布评论

评论列表(0)

  1. 暂无评论