DeviceManager.BeginPlayAudioFile Method
Plays an audio file on a specified audio device.
Namespace: Microsoft.Lync.Model.Device
Assembly: Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)
Syntax
'Declaration
Public Function BeginPlayAudioFile ( _
audioFileName As String, _
playbackDevices As AudioPlayBackModes, _
loop As Boolean, _
deviceManagerCallback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim instance As DeviceManager
Dim audioFileName As String
Dim playbackDevices As AudioPlayBackModes
Dim loop As Boolean
Dim deviceManagerCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginPlayAudioFile(audioFileName, _
playbackDevices, loop, deviceManagerCallback, _
state)
public IAsyncResult BeginPlayAudioFile(
string audioFileName,
AudioPlayBackModes playbackDevices,
bool loop,
AsyncCallback deviceManagerCallback,
Object state
)
Parameters
- audioFileName
Type: System.String
- playbackDevices
Type: Microsoft.Lync.Model.Device.AudioPlayBackModes
- loop
Type: System.Boolean
- deviceManagerCallback
Type: System.AsyncCallback
- state
Type: System.Object
Return Value
Type: System.IAsyncResult