Page 1 of 1

SNDPLAYSOUND huge delay, help...

Posted: Wed Mar 30, 2011 8:37 pm
by giobbi
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

Re: SNDPLAYSOUND huge delay, help...

Posted: Wed Mar 30, 2011 9:13 pm
by mgsoft
Have you called sysrefresh() before and after?

Re: SNDPLAYSOUND huge delay, help...

Posted: Wed Mar 30, 2011 11:40 pm
by giobbi
Yes, I did it, but without any effects. It seems like it's loading or analyzing the whole file before to play it...