Advertisement

DSound buffers, Null test good enough?

Started by July 06, 2000 01:27 AM
-1 comments, last by SikCiv 24 years, 5 months ago
I have about 10 sound buffers in my game, and shuffle wave files to and from them quite regularly. My sound functions currently test if the buffer is NULL or not. -If they are NULL, ill load another wave file to it. -If its not NULL, ill play the buffer. (dont ask why i use this system, i have my reasons) My question is, since my app is running under a multitasking environment, the sound buffers can be released by the OS, so keeping my own bool flag on all the buffers is a bit risky. Is it ok to find out if the buffer has data by testing buffers pointer this way? Or is there a specific DSound command or a generic command that can do this properly?

  Downloads:  ZeroOne Realm

This topic is closed to new replies.

Advertisement