SoundPlayer sync VS Async
非同步播放音樂
Dim m As New System.Media.SoundPlayer
m.SoundLocation = "http://ppp_peer/t1.wav"
m.LoadAsync()
m.PlaySync
同步播放音樂
Dim m1 As New System.Media.SoundPlayer
m1.SoundLocation = "http://ppp_peer/t1.wav"
m1.Load()
m1.Play()
Dim m As New System.Media.SoundPlayer
m.SoundLocation = "http://ppp_peer/t1.wav"
m.LoadAsync()
m.PlaySync
同步播放音樂
Dim m1 As New System.Media.SoundPlayer
m1.SoundLocation = "http://ppp_peer/t1.wav"
m1.Load()
m1.Play()
留言