cAudioPlayerWasapiPlay Method |
Namespace:
CSAudioPlayer
Assembly:
CSAudioPlayer (in CSAudioPlayer.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax public void Play(
string FileName,
int DeviceIndex,
DecodeMode DecodeMode = DecodeMode.LocalCodecs,
int Samplerate = 0,
short Bits = 0,
short Channels = 0
)
Public Sub Play (
FileName As String,
DeviceIndex As Integer,
Optional DecodeMode As DecodeMode = DecodeMode.LocalCodecs,
Optional Samplerate As Integer = 0,
Optional Bits As Short = 0,
Optional Channels As Short = 0
)
Dim instance As cAudioPlayerWasapi
Dim FileName As String
Dim DeviceIndex As Integer
Dim DecodeMode As DecodeMode
Dim Samplerate As Integer
Dim Bits As Short
Dim Channels As Short
instance.Play(FileName, DeviceIndex, DecodeMode,
Samplerate, Bits, Channels)
abstract Play :
FileName : string *
DeviceIndex : int *
?DecodeMode : DecodeMode *
?Samplerate : int *
?Bits : int16 *
?Channels : int16
(* Defaults:
let _DecodeMode = defaultArg DecodeMode DecodeMode.LocalCodecs
let _Samplerate = defaultArg Samplerate 0
let _Bits = defaultArg Bits 0
let _Channels = defaultArg Channels 0
*)
-> unit
override Play :
FileName : string *
DeviceIndex : int *
?DecodeMode : DecodeMode *
?Samplerate : int *
?Bits : int16 *
?Channels : int16
(* Defaults:
let _DecodeMode = defaultArg DecodeMode DecodeMode.LocalCodecs
let _Samplerate = defaultArg Samplerate 0
let _Bits = defaultArg Bits 0
let _Channels = defaultArg Channels 0
*)
-> unit
public final void Play(
String FileName,
int DeviceIndex,
DecodeMode DecodeMode = DecodeMode.LocalCodecs,
int Samplerate = 0,
short Bits = 0,
short Channels = 0
)
public final function Play(
FileName : String,
DeviceIndex : int,
DecodeMode : DecodeMode,
Samplerate : int,
Bits : short,
Channels : short
)
function Play(FileName, DeviceIndex, DecodeMode, Samplerate, Bits, Channels);
Parameters
- FileName
- Type: SystemString
- DeviceIndex
- Type: SystemInt32
- DecodeMode (Optional)
- Type: CSAudioPlayerDecodeMode
- Samplerate (Optional)
- Type: SystemInt32
- Bits (Optional)
- Type: SystemInt16
- Channels (Optional)
- Type: SystemInt16
Implements
cAudioPlayerPlay(String, Int32, DecodeMode, Int32, Int16, Int16)See Also