Allow the audio renderer to be overriden by the ML_AUDIO environment variable

This commit is contained in:
Cameron Gutman 2019-01-06 13:28:05 -08:00
parent 6cf408f12b
commit c21ba5c808

View file

@ -3,15 +3,19 @@
#ifdef HAVE_SOUNDIO
#include "renderers/soundioaudiorenderer.h"
#else
#include "renderers/sdl.h"
#endif
#include "renderers/sdl.h"
#include <Limelight.h>
IAudioRenderer* Session::createAudioRenderer()
{
#ifdef HAVE_SOUNDIO
if (qgetenv("ML_AUDIO") == "SDL") {
return new SdlAudioRenderer();
}
return new SoundIoAudioRenderer();
#else
return new SdlAudioRenderer();