放大本地 AMR 文件的播放音量

发布于 2024-09-18 11:25:50 字数 533 浏览 4 评论 0原文

我有一个应用程序可以播放已下载并本地缓存的 AMR 音频文件。
这工作正常 - 基本的 MediaPlayer 可以它的工作。

然而,音频音量通常很低,并且通过硬件按键手动增大音量仍然无法使播放声音足够大。

不同设备的行为似乎有所不同——索尼爱立信的声音特别低,HTC 设备的声音还算合理,而三星 Galaxy S 在音量调到最大时实际上声音很大。

是否有任何相对简单的方法,使用 Android SDK,可以在播放 AMR 文件时将音量加倍?

我注意到 AudioTrack 允许您操作音频,但这似乎适用于原始 PCM 流。

I have an application that plays back AMR audio files that it has downloaded and cached locally.
This works fine — the basic MediaPlayer does its job.

However, the audio volume is generally very low, and manually increasing the volume with the hardware keys still doesn't make the playback quite loud enough.

The behaviour seems to vary across devices — Sony Ericssons are particularly low, HTC devices are reasonable, and the Samsung Galaxy S is actually very loud when the volume is turned up to the maximum.

Are there any relatively simple approaches, using the Android SDK, that could, say, double the volume while playing back from the AMR file?

I note that AudioTrack allows you to manipulate audio, but this seems to be for raw PCM streams.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文