Hi all,
What may be the cause of function sndPlaySound to fail. The speaker is functioning correctly.
Environment: windows xp, clip52 fw24
Thanks,
Jose
Hi all,
What may be the cause of function sndPlaySound to fail. The speaker is functioning correctly.
Environment: windows xp, clip52 fw24
Thanks,
Jose
#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"Antonio,
I follow your sugesttion but, the sound is still not playing. The function sndPlaySound return false.
Thanks,
Jose
Jose,
is you wav file ok ? Can you play it with windows media player ?
Antonio,
Thanks for the quick reply. The file sounds good with windows media player.
Regards,
Jose
whats the name (including its path) of the wav file ?
Horn.wav, startup.wav. I can send you the file if you need.
#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. But if the WAV file not long time it work. I think the WAV file not over 2 Minute be work fine.