16 references to AudioPlayMode
Microsoft.VisualBasic.Forms (16)
Microsoft\VisualBasic\Devices\Audio.vb (16)
25
''' Validates that the value being passed as an <see cref="
AudioPlayMode
"/> enum is a legal value.
28
Private Shared Sub ValidateAudioPlayModeEnum(value As
AudioPlayMode
, paramName As String)
29
If value <
AudioPlayMode
.WaitToComplete OrElse value >
AudioPlayMode
.BackgroundLoop Then
30
Throw New ComponentModel.InvalidEnumArgumentException(paramName, value, GetType(
AudioPlayMode
))
51
''' Plays the passed in <see cref="Media.SoundPlayer"/> in the passed in <see cref="
AudioPlayMode
"/>.
55
Private Sub Play(sound As Media.SoundPlayer, mode As
AudioPlayMode
)
66
Case
AudioPlayMode
.WaitToComplete
68
Case
AudioPlayMode
.Background
70
Case
AudioPlayMode
.BackgroundLoop
91
Play(location,
AudioPlayMode
.Background)
99
''' An enum value representing the <see cref="
AudioPlayMode
"/> Background (async),
102
Public Sub Play(location As String, playMode As
AudioPlayMode
)
115
Public Sub Play(data() As Byte, playMode As
AudioPlayMode
)
127
''' Plays a <see cref="Stream"/> representation of a .wav file in the passed in <see cref="
AudioPlayMode
"/>.
132
Public Sub Play(stream As Stream, playMode As
AudioPlayMode
)