How to play a WAV audio file in VB.NET

By James J

Shows how to play your given path wav file

> Here C:\Demo.wav is file which will play...

> Play file as infinite loop...

My.Computer.Audio.Play("C:\Demo.wav", AudioPlayMode.BackgroundLoop)

> Play file as only one time means "WaitToComplete"...

My.Computer.Audio.Play("C:\Demo.wav", AudioPlayMode.WaitToComplete)

How to play a WAV audio file in VB.NET  (878 Views)