Home > other >  A DSOUND problem
A DSOUND problem

Time:09-23

I have a look at the others game audio playback code,
He is so set set primary buffer nAvgBytesPerSec for 192000, the format field in the
But behind the program code is such a mean
While (1)
{
XXX - & gt; The lock ()
Memcpy (secondbuffer mybuffer, 960);
XXX - & gt; Unlock ()
sleep(1);
}
So 1 second should be 960000 bytes, more than five times the number of bytes, what is the meaning of this

CodePudding user response:

Sleep for a second and secondbuffer is not the same, sleep time to 1 second, absolutely secondbuffer to processed
  • Related