放大本地 AMR 文件的播放音量
我有一个应用程序可以播放已下载并本地缓存的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论