有没有人试图同时通过扬声器和耳机播放声音? Android + iOS [英] Has anyone tried to play sounds through the speakers and headphones at the same time? Android + iOS

查看:311
本文介绍了有没有人试图同时通过扬声器和耳机播放声音? Android + iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个应用程序可以实时生成声音,例如纯音和白噪声,并且可以在耳机上听到. 是否可以同时将相同的信号发送到内置扬声器和耳机?我想在iOS 7和KitKat上执行此操作.可能是将来的Android L和iOS 8 ...

I currently have an app that generates sounds on the fly, like pure tones and white noise, and I can hear that on the headphones. Is it possible to send the same signal to the internal speakers and the headphones at the same time? I would like to do this on iOS 7 and KitKat. Probably, Android L and iOS 8 in the future...

在iOS上,我看到iOS 6多路由引入了一项新功能,可以选择音频路由.问题是,当我连接耳机时,无法选择内置扬声器.也许我做错了.我认为这对我在Android上有帮助...

On iOS I have seen that a new feature was introduced on iOS 6, multiroute, which let select the audio route. The thing is that when I connect the headphones I can not choose the internal speakers. Maybe I am doing something wrong. I think that would help me on Android...

在Android上,我同时使用耳机和扬声器找到了 .但这是一年前的事.

On Android, I have found this simultaneously using a headphone and speaker. But that is from one year ago.

有人尝试过吗?

谢谢!

推荐答案

在iOS上,我认为您无法同时将音频路由到耳机和扬声器.您可以使用此 Apple中包含的多路由音频代码来控制到不同音频接口的路由. WWDC幻灯片,但是内置的耳机插孔和扬声器是同一音频接口的一部分,我认为没有方法可以覆盖该接口中在连接耳机时禁用扬声器的行为

On iOS, I don't think you can route audio to both the headphones and the speakers. You can control the routing to different audio interfaces using the multi-route audio code included in this Apple WWDC slideshow, but the built-in headphone jack and speakers are part of the same audio interface, and I don't think there is a way to override the behavior within that interface of disabling the speaker when the headphones are connected.

这篇关于有没有人试图同时通过扬声器和耳机播放声音? Android + iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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