Android/Linux/音频/驱动
全部博文(41)
分类: Android平台
2016-11-16 18:38:00
【释义】
在 Andorid 音频开发中,我们会看到叫做 REMOTE_SUBMIX 的音频类型,相应地在底层会有 AUDIO_DEVICE_OUT_REMOTE_SUBMIX 和 AUDIO_DEVICE_IN_REMOTE_SUBMIX 音频设备,在 audio_policy.conf 配置文件中也能看到 r_submix 设备。这次在开发中终于看到了这类音频的使用场景——使设备通过 WiFi 向 ChromeCast 设备传输 HDMI 数据(HDMI 同时含有视频数据和音频数据)。
我们可以查看官方文档获得更详细的信息,如下:
Audio source for a submix of audio streams to be presented remotely.
An application can use this audio source to capture a mix of audio streams that should be transmitted to a remote receiver such as a Wifi display. While recording is active, these audio streams are redirected to the remote submix instead of being played on the device speaker or headset.
Certain streams are excluded from the remote submix, including , , and . These streams will continue to be presented locally as usual.
Capturing the remote submix audio requires the permission. This permission is reserved for use by system components and is not available to third-party applications.
【参考资料】
[1]