RequestedFrames = (unsigned int)len / factor;
+ if (snd_usethreadedmixing)
+ {
+ S_MixToBuffer(stream, RequestedFrames);
+ return;
+ }
+
// Transfert up to a chunk of samples from snd_renderbuffer to stream
MaxFrames = snd_renderbuffer->endframe - snd_renderbuffer->startframe;
if (MaxFrames > RequestedFrames)
SDL_AudioSpec wantspec;
SDL_AudioSpec obtainspec;
+ snd_threaded = false;
+
Con_DPrint ("SndSys_Init: using the SDL module\n");
// Init the SDL Audio subsystem
return false;
}
+ snd_threaded = true;
+
snd_renderbuffer = Snd_CreateRingBuffer(requested, 0, NULL);
if (snd_channellayout.integer == SND_CHANNELLAYOUT_AUTO)
{