Switch back to SDL for audio on Linux. Fixes #245
This commit is contained in:
parent
c88651939a
commit
fc849fb51a
1 changed files with 10 additions and 0 deletions
|
|
@ -16,11 +16,21 @@
|
|||
IAudioRenderer* Session::createAudioRenderer()
|
||||
{
|
||||
#if defined(HAVE_SOUNDIO)
|
||||
#ifdef Q_OS_LINUX
|
||||
// Default is SDL with libsoundio as an alternate
|
||||
if (qgetenv("ML_AUDIO") == "libsoundio") {
|
||||
return new SoundIoAudioRenderer();
|
||||
}
|
||||
|
||||
return new SdlAudioRenderer();
|
||||
#else
|
||||
// Default is libsoundio with SDL as an alternate
|
||||
if (qgetenv("ML_AUDIO") == "SDL") {
|
||||
return new SdlAudioRenderer();
|
||||
}
|
||||
|
||||
return new SoundIoAudioRenderer();
|
||||
#endif
|
||||
#elif defined(HAVE_SLAUDIO)
|
||||
return new SLAudioRenderer();
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue