集介质左/右音量分开? [英] Set media left/right volume separately?

查看:190
本文介绍了集介质左/右音量分开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想重写媒体左右音量分别设置为一个整体。

I would like to override the media left and right volume setting separately as a whole.

这似乎并不可能单独使用,设置左右音量的 AudioManager.setStreamVolume()的。照片 我注意到有可能,虽然与设置的 MediaPlayer.setVolume() SoundPool.play()的,但我想重写整个系统的媒体设置,使立体声平衡将保持不同的音乐播放器和应用程序之间。

It does not seem possible to set the left and right volume separately using AudioManager.setStreamVolume().
I noticed it is possible though to set it with MediaPlayer.setVolume() or SoundPool.play() but I would like to override the whole system media settings so the stereo balance would be kept among the different music players and applications.

我不是很熟悉Android的,所以我欢迎所有的建议,提示,可以帮助我实现这个目标。

I'm not really familiar with Android so I would welcome all advices, tips that could help me achieve this.

PS:我的工作在Android 2.3.4。我不会介意,如果这需要通过root用户权限。

推荐答案

左/右音量调节系统/用户不是公共API可用。这是唯一仅适用于应用层面,用你提到的方法。

Left / right volume adjustment for system / user is not available in the public API. It's only only available on app level, using the methods you mentioned.

这篇关于集介质左/右音量分开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆