X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=snd_coreaudio.c;h=bbc97c07a92094ed0657bf0143aa36449660649a;hb=c0b8da8b7012a02ffd416d83840ad2bae7056191;hp=6d6dd5b07cbfa5ca0ad19be30b01d593d088c217;hpb=3f843ec8efaf7f88bffae9cda7e8bdb87f8bfd8c;p=xonotic%2Fdarkplaces.git diff --git a/snd_coreaudio.c b/snd_coreaudio.c index 6d6dd5b0..bbc97c07 100644 --- a/snd_coreaudio.c +++ b/snd_coreaudio.c @@ -73,6 +73,7 @@ static OSStatus audioDeviceIOProc(AudioDeviceID inDevice, 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 @@ -384,3 +385,15 @@ void SndSys_UnlockRenderBuffer (void) { pthread_mutex_unlock(&coreaudio_mutex); } + +/* +==================== +SndSys_SendKeyEvents + +Send keyboard events originating from the sound system (e.g. MIDI) +==================== +*/ +void SndSys_SendKeyEvents(void) +{ + // not supported +}