Playing sounds causes unwanted pauses

  • Thread starter Thread starter Dom
  • Start date Start date
D

Dom

I'm playing sounds from memory but they're causing my game's graphics to
pause. Does anybody know how to get around this ?
Thanks,
Dom
 
Are you playing it asynchronously using something like:

PlaySound(bstr, IntPtr.Zero, SND_ASYNC Or SND_MEMORY)

Or are you still getting the delay doing it this way?
Steven
 
Dom,

Try to initiate the garbage collector just before, so it will not succeed in
anything while this is going on.


Best regards,

Henrik Dahl
 
OK,

In the full framework you may give the time to some other thread, as far as
I remember it's by Thread.Sleep(0). What if you do this just before you
play?


Best regards,

Henrik Dahl
 
Back
Top