FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper Sound is not playing
Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM
Sound is not playing
Posted: Tue Aug 07, 2007 06:27 PM

Hi all,

What may be the cause of function sndPlaySound to fail. The speaker is functioning correctly.

Environment: windows xp, clip52 fw24

Thanks,

Jose

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Sound is not playing
Posted: Thu Aug 09, 2007 10:45 AM
Jose,

Try it this way. Here its working fine with Clipper and Vista:
#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"
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM
Sound still not playing in Windows XP
Posted: Thu Aug 09, 2007 04:44 PM

Antonio,

I follow your sugesttion but, the sound is still not playing. The function sndPlaySound return false.

Thanks,

Jose

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Sound is not playing
Posted: Thu Aug 09, 2007 07:06 PM

Jose,

is you wav file ok ? Can you play it with windows media player ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM
The sounds good.
Posted: Thu Aug 09, 2007 08:29 PM

Antonio,

Thanks for the quick reply. The file sounds good with windows media player.

Regards,

Jose

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Sound is not playing
Posted: Thu Aug 09, 2007 08:45 PM

whats the name (including its path) of the wav file ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 100
Joined: Wed Oct 04, 2006 04:50 PM
Sounds not playing
Posted: Thu Aug 09, 2007 09:06 PM

Horn.wav, startup.wav. I can send you the file if you need.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Sound is not playing
Posted: Thu Aug 09, 2007 11:58 PM
Jose,

Got your files and this code is working fine with Clipper, FW 7.07 and Vista 32:
#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"
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 31
Joined: Wed Oct 19, 2005 03:30 AM
I'm ever gotten that promble like you.
Posted: Wed Aug 22, 2007 03:53 AM

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.

Continue the discussion