AudioRoute

  • Electron

更新时间不可用

音频路由的类型。

枚举值

参数名描述
RouteDefault

-1: 使用默认的音频路由。

RouteHeadset

0: 音频路由为带麦克风的耳机。

RouteEarpiece

1: 音频路由为听筒。

RouteHeadsetNoMic

2: 音频路由为不带麦克风的耳机。

RouteSpeakerphone

3: 音频路由为设备自带的扬声器。

RouteLoudspeaker

4: 音频路由为外接的扬声器。(仅适用于 macOS)

RouteBluetoothDeviceHFP

5: 音频路由为使用 HFP 协议的蓝牙设备。

RouteUsb

6: 音频路由为 USB 外围设备。(仅适用于 macOS)

RouteHdmi

7: 音频路由为 HDMI 外围设备。(仅适用于 macOS)

RouteDisplayport

8: 音频路由为 DisplayPort 外围设备。(仅适用于 macOS)

RouteAirplay

9: 音频路由为 Apple AirPlay。(仅适用于 macOS)

RouteBluetoothDeviceA2DP

10: 音频路由为使用 A2DP 协议的蓝牙设备。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?