git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8484
d7cf8633-e32d-0410-b094-
e92efae38249
if (snd_usethreadedmixing)
{
S_MixToBuffer(mixbuffer, submissionChunk);
+ sampleCount = submissionChunk * snd_renderbuffer->format.channels;
for (sampleIndex = 0; sampleIndex < sampleCount; sampleIndex++)
outBuffer[sampleIndex] = mixbuffer[sampleIndex] * scale;
// unlock the mutex now
if (!status)
{
s_isRunning = true;
-#if 0
-// FIXME: This causes crashes and weird problems, why doesn't it work?
snd_threaded = true;
-#endif
Con_Print(" Initialization successful\n");
return true;
}