From f63d8dbf38352b9ca0f1dc5e8eab87242c81b3ee Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 29 Nov 2009 23:02:21 -0800 Subject: Enable real-time priority for ALSA, OSS, and DirectSound mixing loops --- Alc/oss.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Alc/oss.c') diff --git a/Alc/oss.c b/Alc/oss.c index c3cd9528..4a7a48be 100644 --- a/Alc/oss.c +++ b/Alc/oss.c @@ -82,6 +82,8 @@ static ALuint OSSProc(ALvoid *ptr) ALint frameSize; ssize_t wrote; + EnableRTPrio(); + frameSize = aluChannelsFromFormat(pDevice->Format) * aluBytesFromFormat(pDevice->Format); @@ -122,6 +124,8 @@ static ALuint OSSCaptureProc(ALvoid *ptr) int frameSize; int amt; + EnableRTPrio(); + frameSize = aluBytesFromFormat(pDevice->Format); frameSize *= aluChannelsFromFormat(pDevice->Format); -- cgit v1.2.3