SNDPLAYSOUND huge delay, help...

SNDPLAYSOUND huge delay, help...

Postby giobbi » Wed Mar 30, 2011 8: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
giobbi
 
Posts: 6
Joined: Fri Apr 28, 2006 3:14 pm

Re: SNDPLAYSOUND huge delay, help...

Postby mgsoft » Wed Mar 30, 2011 9:13 pm

Have you called sysrefresh() before and after?
Saludos,

Eduardo
User avatar
mgsoft
 
Posts: 422
Joined: Mon Aug 17, 2009 12:18 pm
Location: España

Re: SNDPLAYSOUND huge delay, help...

Postby giobbi » 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...
giobbi
 
Posts: 6
Joined: Fri Apr 28, 2006 3:14 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 39 guests