AudioPlayMode Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Indicates how to play sounds when calling audio methods.

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public enum AudioPlayMode

Member nameDescription
Background

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

BackgroundLoop

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.

WaitToComplete

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

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

.NET Framework
Available since 2.0
Return to top
Show: