AudioPlayMode AudioPlayMode AudioPlayMode AudioPlayMode Enum

定义

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

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

字段

Background Background Background 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 BackgroundLoop BackgroundLoop 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 WaitToComplete WaitToComplete 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.

适用于

另请参阅