MediaPlayerSetOutputDevice 方法 |
Configures an explicit audio output device.
If the module paramater is NULL, audio output will be moved to the device
specified by the device identifier string immediately.This is the
recommended usage.
A list of adequate potential device strings can be obtained with
AudioOutputDeviceEnum
However passing NULL is supported in LibVLC version 2.2.0 and later only;
in earlier versions, this function would have no effects when the module
parameter was NULL.
If the module parameter is not NULL, the device parameter of the
corresponding audio output, if it exists, will be set to the specified
string.
A list of adequate potential device strings can be obtained with
AudioOutputDevices(String)
命名空间:
LibVLCSharp.Shared
程序集:
CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法public void SetOutputDevice(
string deviceId,
string module = null
)
参数
- deviceId
- 类型:SystemString
device identifier string - module (Optional)
- 类型:SystemString
If NULL, current audio output module. if non-NULL, name of audio output module
参见