From c21ba5c8083968bcc4692391afe345058601e742 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 6 Jan 2019 13:28:05 -0800 Subject: [PATCH] Allow the audio renderer to be overriden by the ML_AUDIO environment variable --- app/streaming/audio/audio.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/streaming/audio/audio.cpp b/app/streaming/audio/audio.cpp index 40290b8e..c61312e2 100644 --- a/app/streaming/audio/audio.cpp +++ b/app/streaming/audio/audio.cpp @@ -3,15 +3,19 @@ #ifdef HAVE_SOUNDIO #include "renderers/soundioaudiorenderer.h" -#else -#include "renderers/sdl.h" #endif +#include "renderers/sdl.h" + #include IAudioRenderer* Session::createAudioRenderer() { #ifdef HAVE_SOUNDIO + if (qgetenv("ML_AUDIO") == "SDL") { + return new SdlAudioRenderer(); + } + return new SoundIoAudioRenderer(); #else return new SdlAudioRenderer();