From bcbd4433594539cb0208809af12c6278632f8301 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Tue, 5 Sep 2017 00:57:28 -0500 Subject: SDL: Stop using double buffering mixer on macOS This mixer type was added in 943b4c2036002454b276e0190dfc2c8919fb0cbf because "anything which produces sampled data with high latency (like the MT-32 emulator) will sound terribly", but as far as I can see (or reproduce), this mixer doesn't do anything that would solve that problem, except that it effectively doubles the size of the audio buffer so there's less chance of an underflow due to slower-than-realtime synthesis by the softsynth. But you don't need the overhead of a separate thread to do that, you just need to increase the buffer size. --- backends/platform/sdl/macosx/macosx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends') diff --git a/backends/platform/sdl/macosx/macosx.cpp b/backends/platform/sdl/macosx/macosx.cpp index 7e6ef9588e..457746c381 100644 --- a/backends/platform/sdl/macosx/macosx.cpp +++ b/backends/platform/sdl/macosx/macosx.cpp @@ -64,7 +64,7 @@ void OSystem_MacOSX::init() { void OSystem_MacOSX::initBackend() { // Create the mixer manager if (_mixer == 0) { - _mixerManager = new DoubleBufferSDLMixerManager(); + _mixerManager = new SdlMixerManager(); // Setup and start mixer _mixerManager->init(); -- cgit v1.2.3