Is there a way to play a wav file without use of DirectSound?
thx
Printable View
Is there a way to play a wav file without use of DirectSound?
thx
:)VB Code:
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Integer, ByVal dwFlags As Integer) As Integer Private Const SND_FILENAME As Integer = CInt(&H20000) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim path As String = "C:\Knock.wav" '/// your wav's location here. PlaySound(path, 0, SND_FILENAME) End Sub
thank you
it works perfect
db
Your the Man!
Is it possible to play 2 sounds and more at 1 goal without using directsound?