Annoyances.org
Home » Windows 95 Discussion Forum » Message 1166532500 Search | Help | Home
  
re: Playsound Ap
Tuesday, December 19, 2006 at 4:48 am
Windows 95 Annoyances Discussion Forum
Posted by Keith Stanier (1000 messages posted)


This isn't a Windows problem really, its a programming problem. I would suggest searching 
the web for a Lisp Forum. 

Well I don't use Lisp I programme in Visual Basic. To play a sound in there we use.

Const SND_ASYNC = &H1
Const SND_NODEFAULT = &H2

Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal 
lpszSoundName As String, ByVal uFlags As Long) As Long

Private Sub Command1_Click() 'A button

Call sndPlaySound(App.Path & "\explode.wav", SND_ASYNC Or SND_NODEFAULT)

End Sub

App.Path is the current directory your exe is running from.





Written in response to:
Playsound Ap (Darrell Toland: Monday, December 18, 2006 at 10:25 am)

Responses to this message:
*re: Playsound Ap (Darrell Toland: Tuesday, December 19, 2006 at 8:56 am)

All messages in this thread [show all]
-Playsound Ap (Darrell Toland: Mon, Dec 18, 2006, 10:25 am)
-re: Playsound Ap (Keith Stanier: Tue, Dec 19, 2006, 4:48 am)
*re: Playsound Ap (Darrell Toland: Tue, Dec 19, 2006, 8:56 am)
Return to the Windows 95 Discussion Forum

All content at Annoyances.org is Copyright © 1995-2008 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.