From e5809740a5ff6da20938da4051cd211849ddf11b Mon Sep 17 00:00:00 2001 From: Ghislain Antony Vaillant Date: Mon, 6 Sep 2021 06:24:08 +0200 Subject: [PATCH] Reorder optimal audio drivers Same order as defined in ares, which favor pulseaudio over ALSA. --- ruby/audio/audio.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ruby/audio/audio.cpp b/ruby/audio/audio.cpp index a6bf15bf..b6c1d495 100644 --- a/ruby/audio/audio.cpp +++ b/ruby/audio/audio.cpp @@ -252,18 +252,18 @@ auto Audio::optimalDriver() -> string { return "DirectSound 7.0"; #elif defined(AUDIO_WAVEOUT) return "waveOut"; - #elif defined(AUDIO_ALSA) - return "ALSA"; - #elif defined(AUDIO_OSS) - return "OSS"; - #elif defined(AUDIO_OPENAL) - return "OpenAL"; #elif defined(AUDIO_PULSEAUDIO) return "PulseAudio"; #elif defined(AUDIO_PULSEAUDIOSIMPLE) return "PulseAudio Simple"; + #elif defined(AUDIO_OPENAL) + return "OpenAL"; #elif defined(AUDIO_AO) return "libao"; + #elif defined(AUDIO_ALSA) + return "ALSA"; + #elif defined(AUDIO_OSS) + return "OSS"; #else return "None"; #endif