控制android api上的声音 [英] Controlling sound on android api

查看:49
本文介绍了控制android api上的声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我是Android开发平台的新手,我想知道Android API是否支持控制声音平衡(从左到右,否则)当耳机插在设备上时。换句话说,我能够将左耳机静音(带按钮),同时我让右耳机播放声音吗?这取决于手机制造商吗?



我尝试过:



我以前从未尝试过这样做过。在另一个论坛发布了这个但我几天都没有回答。

解决方案

SoundPool | Android开发者 [ ^ ]

Hello,

I am new to android development platform, I wanted to know if Android API supports controlling the sound balance (from left to right, and otherwise) when headphones are plugged on the device. In other words, am I able to mute left headphone (with button tap), meanwhile I let the right one play the sound? Does it depends on phone manufacturer?

What I have tried:

I've never tried to do this before. posted this in another forum but I got no answer for days.

解决方案

There does not appear to be such a control in SoundPool | Android Developers[^].


这篇关于控制android api上的声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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