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;
}
{
pthread_mutex_unlock(&coreaudio_mutex);
}
+
+/*
+====================
+SndSys_SendKeyEvents
+
+Send keyboard events originating from the sound system (e.g. MIDI)
+====================
+*/
+void SndSys_SendKeyEvents(void)
+{
+ // not supported
+}