Hi all,
What may be the cause of function sndPlaySound to fail. The speaker is functioning correctly.
Environment: windows xp, clip52 fw24
Thanks,
Jose
Sound is not playing
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Jose,
Try it this way. Here its working fine with Clipper and Vista:
Try it this way. Here its working fine with Clipper and Vista:
Code: Select all
#include "FiveWin.ch"
function Main()
SndPlaySound( "test.wav", 0 )
return nil
DLL FUNCTION SndPlaySound( cFile AS LPSTR, nType AS WORD ) AS BOOL PASCAL LIB "MMSYSTEM.DLL"
Last edited by Antonio Linares on Thu Aug 09, 2007 11:55 pm, edited 1 time in total.
Sound still not playing in Windows XP
Antonio,
I follow your sugesttion but, the sound is still not playing. The function sndPlaySound return false.
Thanks,
Jose
I follow your sugesttion but, the sound is still not playing. The function sndPlaySound return false.
Thanks,
Jose
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
The sounds good.
Antonio,
Thanks for the quick reply. The file sounds good with windows media player.
Regards,
Jose
Thanks for the quick reply. The file sounds good with windows media player.
Regards,
Jose
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Sounds not playing
Horn.wav, startup.wav. I can send you the file if you need.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Jose,
Got your files and this code is working fine with Clipper, FW 7.07 and Vista 32:
Got your files and this code is working fine with Clipper, FW 7.07 and Vista 32:
Code: Select all
#include "FiveWin.ch"
function Main()
SndPlaySound( "startup.wav", 0 )
return nil
DLL FUNCTION SndPlaySound( cFile AS LPSTR, nType AS WORD ) AS BOOL PASCAL LIB "MMSYSTEM.DLL"
I'm ever gotten that promble like you.
I'm ever gotten that promble like you. But if the WAV file not long time it work. I think the WAV file not over 2 Minute be work fine.