From 96ff51d59880d3b0bcda40fe5ef8c41e36990316 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 22 Sep 2019 12:03:53 -0700 Subject: [PATCH] Use SDL audio for platforms that libsoundio doesn't support --- app/streaming/audio/audio.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/streaming/audio/audio.cpp b/app/streaming/audio/audio.cpp index 73bdff10..d9a5f1e8 100644 --- a/app/streaming/audio/audio.cpp +++ b/app/streaming/audio/audio.cpp @@ -55,8 +55,9 @@ IAudioRenderer* Session::createAudioRenderer(const POPUS_MULTISTREAM_CONFIGURATI TRY_INIT_RENDERER(SLAudioRenderer, opusConfig) #endif -#ifdef Q_OS_LINUX - // Linux defaults to SDL and fall backs to libsoundio +#if !defined(Q_OS_WIN32) && !defined(Q_OS_DARWIN) + // Linux defaults to SDL due to persistent glitching issues under libsoundio. + // Platforms that libsoundio doesn't support also default to SDL. TRY_INIT_RENDERER(SdlAudioRenderer, opusConfig) #ifdef HAVE_SOUNDIO TRY_INIT_RENDERER(SoundIoAudioRenderer, opusConfig)