|
-
Jul 16th, 2003, 03:14 PM
#1
Thread Starter
Lively Member
Play Wave File [RESOLVED]
Is there a way to play a wav file without use of DirectSound?
thx
Last edited by daveStudent; Jul 17th, 2003 at 09:15 AM.
-
Jul 16th, 2003, 03:22 PM
#2
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
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jul 17th, 2003, 09:14 AM
#3
Thread Starter
Lively Member
thank you
it works perfect
db
-
Nov 12th, 2004, 01:33 AM
#4
New Member
-
Nov 14th, 2004, 09:52 AM
#5
Lively Member
Is it possible to play 2 sounds and more at 1 goal without using directsound?
The Power Of Sharing Knowledge!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|