FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SNDPLAYSOUND huge delay, help...
Posts: 6
Joined: Fri Apr 28, 2006 03:14 PM

SNDPLAYSOUND huge delay, help...

Posted: Wed Mar 30, 2011 08:37 PM

Hi all,

I have a problem with the SndPlaySound funcion: I'm trying to play a 3min.long, uncompressed .wav file, but I get up to 7 seconds of delay after the function return the control to the application and the music starts.

On my quite old Pentium 4/WinXP system runs ok; on my older Pentium 3/Windows Millenium system gives me that problem.

What can I do? I tried to compress the files with another codec, but it didn't resolve. Small files (about 4 or 5 secs. long) usually work fine.

regards,
Giobbi

Posts: 422
Joined: Mon Aug 17, 2009 12:18 PM

Re: SNDPLAYSOUND huge delay, help...

Posted: Wed Mar 30, 2011 09:13 PM

Have you called sysrefresh() before and after?

Saludos,



Eduardo
Posts: 6
Joined: Fri Apr 28, 2006 03:14 PM

Re: SNDPLAYSOUND huge delay, help...

Posted: Wed Mar 30, 2011 11:40 PM

Yes, I did it, but without any effects. It seems like it's loading or analyzing the whole file before to play it...

Continue the discussion