Use SDL audio for platforms that libsoundio doesn't support

This commit is contained in:
Cameron Gutman 2019-09-22 12:03:53 -07:00
parent 7c3d3af681
commit 96ff51d598

View file

@ -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)