SNDPLAYSOUND huge delay, help...

Post Reply
giobbi
Posts: 6
Joined: Fri Apr 28, 2006 3:14 pm

SNDPLAYSOUND huge delay, help...

Post 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
User avatar
mgsoft
Posts: 398
Joined: Mon Aug 17, 2009 12:18 pm
Location: España

Re: SNDPLAYSOUND huge delay, help...

Post by mgsoft »

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

Eduardo
giobbi
Posts: 6
Joined: Fri Apr 28, 2006 3:14 pm

Re: SNDPLAYSOUND huge delay, help...

Post 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...
Post Reply