threaded mixers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8178
d7cf8633-e32d-0410-b094-
e92efae38249
outBuffer = (float*)outOutputData->mBuffers[0].mData;
factor = snd_renderbuffer->format.channels * snd_renderbuffer->format.width;
frameCount = 0;
+ if (snd_blocked)
+ scale = 0;
// Lock the snd_renderbuffer
if (SndSys_LockRenderBuffer())
if (snd_usethreadedmixing)
{
S_MixToBuffer(stream, RequestedFrames);
+ if (snd_blocked)
+ memset(stream, snd_renderbuffer->format.width == 1 ? 0x80 : 0, len);
return;
}