Playsound Ap
Showing all messages in thread #1166466313 Windows 95 Annoyances Discussion Forum
The following are all of the messages in this thread (3 in all), shown in chronological order. Click any message subject to view that message by itself or to view the thread hierarchy.
|
Playsound Ap
Monday, December 18, 2006 at 10:25 am Posted by Darrell Toland
(6 messages posted)
I'm coding a program in Lisp. I cannot get a wav file to play using windows playsound
function. Is there any file etc I can check to get this to work? Thanks.
[Reply or follow-up to this message]
|
re: Playsound Ap
Tuesday, December 19, 2006 at 4:48 am Posted by Keith Stanier
(1028 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.
[Reply or follow-up to this message]
|
re: Playsound Ap
Tuesday, December 19, 2006 at 8:56 am Posted by Darrell Toland
(6 messages posted)
Thanks Keith. The only reason I didn't suspect the code is that several people have
used this exact code with no problems. I'll keep searching.
[Reply or follow-up to this message]
|
|
Tip: Use one of the [Reply or follow-up to this message] links above to add a message to this thread
|
|
Return to the Windows 95 Discussion Forum
|