Android:在 SoundBoard 中切换噪音

发布于 2024-10-09 03:27:44 字数 113 浏览 0 评论 0原文

我正在开发一个音板应用程序。我使用 MediaPlayer 播放 Ogg 声音文件。现在,当我从一种声音切换到另一种声音时,我会听到类似于切换广播电台时听到的噪音。我不想要这种噪音。如何消除呢?有什么想法吗?谢谢

I am developing a Soundboard application. I use MediaPlayer to Play Ogg sound files. Now when I switch from one sound to another sound, I get a noise similar to the ones heard while switching radio stations. I do not want this noise. How to eliminate it? Any Ideas? Thank You

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

飘过的浮云 2024-10-16 03:27:44

可能是一个愚蠢的答案,但在进行切换之前尝试将音量级别调整到尽可能低的水平,然后在完成后重置回用户的原始级别 - 抱歉。

Probably a silly answer but try adjusting the volume level to the lowest possible before making the switch, then resetting back to the user's original level when completed - sorry.

用心笑 2024-10-16 03:27:44

我发现了。这是因为文件从mp3转换ogg。 MP3 文件的比特率较高,转换为 ogg 时最终会导致质量下降,从而产生噪音。

I found out. It was because of the conversion of the files from mp3 to ogg. MP3 files were of higher bitrate and when converted to ogg ended up in the loss of quality which resulted in the noise.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文