Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AudioPlayMode Enum

Definition

Namespace:
Microsoft.VisualBasic
Assembly:
Microsoft.VisualBasic.dll
Assembly:
Microsoft.VisualBasic.Forms.dll
Source:
Audio.AudioPlayMode.vb
Source:
Audio.AudioPlayMode.vb
Source:
Audio.vb
Source:
Audio.vb
Source:
Audio.vb

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Indicates how to play sounds when calling audio methods.

public enum class AudioPlayMode
public enum AudioPlayMode
type AudioPlayMode = 
Public Enum AudioPlayMode
Inheritance
AudioPlayMode

Fields

Name Value Description
WaitToComplete 0

Causes the My.Computer.Audio.Play method to play the sound, and waits until it completes before calling code continues.

Background 1

Causes the My.Computer.Audio.Play method to play the sound in the background. The calling code continues to execute.

BackgroundLoop 2

Causes the My.Computer.Audio.Play method to play the sound in the background until the Stop() method is called. The calling code continues to execute.

Remarks

You can use the AudioPlayMode enumeration members to control how the Play method plays sounds.

Applies to

See also


Feedback

Was this page helpful?