Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AudioPlayMode Enumeration

 

Indicates how to play sounds when calling audio methods.

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

public enum class 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:
© 2017 Microsoft