summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio.c b/audio.c
index a9f4251..0b12610 100644
--- a/audio.c
+++ b/audio.c
@@ -708,6 +708,7 @@ static snd_pcm_t *AlsaOpenPCM(int use_ac3)
// &&|| hell
if (!(use_ac3 && ((device = AudioAC3Device)
+ || (device = getenv("ALSA_AC3_DEVICE"))
|| (device = getenv("ALSA_PASSTHROUGH_DEVICE"))))
&& !(device = AudioPCMDevice) && !(device = getenv("ALSA_DEVICE"))) {
device = "default";