AudioPlayMode 枚举

定义

指示在调用音频方法时如何播放声音。Indicates how to play sounds when calling audio methods.

public enum class AudioPlayMode
public enum AudioPlayMode
type AudioPlayMode = 
Public Enum AudioPlayMode
继承
AudioPlayMode

字段

Background 1

使 My.Computer.Audio.Play 方法在后台播放声音。Causes the My.Computer.Audio.Play method to play the sound in the background. 该调用代码继续执行。The calling code continues to execute.

BackgroundLoop 2

使 My.Computer.Audio.Play 方法在后台播放声音,直至调用 Stop() 方法为止。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 0

使 My.Computer.Audio.Play 方法播放声音,并等待,直至该方法完成后调用代码才可继续执行。Causes the My.Computer.Audio.Play method to play the sound, and waits until it completes before calling code continues.

注解

您可以使用AudioPlayMode枚举成员来控制该方法播放Play声音的方式。You can use the AudioPlayMode enumeration members to control how the Play method plays sounds.

适用于

另请参阅