VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Plays a .WAV file

by Thejan J Rajapakshe (7 Submissions)
Category: Sound/MP3
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Wed 3rd January 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Plays a .WAV file

API Declarations


(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

Const SND_SYNC = &H0000
Const SND_ASYNC = &H0001
Const SND_NODEFAULT = &H0002
Const SND_LOOP = &H0008
Const SND_NOSTOP = &H0010


Rate Plays a .WAV file




SoundFile$ = "c:\windows\chimes.wav"
wFlags% = SND_ASYNC Or SND_NODEFAULT
x% = sndPlaySound(SoundFile$,wFlags%)



Download this snippet    Add to My Saved Code

Plays a .WAV file Comments

No comments have been posted about Plays a .WAV file. Why not be the first to post a comment about Plays a .WAV file.

Post your comment

Subject:
Message:
0/1000 characters