summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-08-21 15:46:00 +0200
committerwm4 <wm4@nowhere>2017-08-21 15:46:00 +0200
commitb21e0746f6ac0cd2e6faf7590e3aad53b0437d0f (patch)
treecded46a71ed16f00a982b7f2482205d69bad7463 /audio
parent437469c103a1c5a45f7df0463b46c183bb48d3af (diff)
downloadmpv-b21e0746f6ac0cd2e6faf7590e3aad53b0437d0f.tar.bz2
mpv-b21e0746f6ac0cd2e6faf7590e3aad53b0437d0f.tar.xz
ao_rsound: allow setting the host
Completely untested (rsound dev libs unavailable on my system). Trivial enough that it's very likely that it'll just work. No port selection, but could be added by parsing it as part of the device name. Should fix #4714.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_rsound.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/out/ao_rsound.c b/audio/out/ao_rsound.c
index bd3cc2f249..6cfd60d4c9 100644
--- a/audio/out/ao_rsound.c
+++ b/audio/out/ao_rsound.c
@@ -64,6 +64,9 @@ static int init(struct ao *ao)
if (rsd_init(&priv->rd) < 0)
return -1;
+ if (ao->device)
+ rsd_set_param(priv->rd, RSD_HOST, ao->device);
+
// Actual channel layout unknown.
struct mp_chmap_sel sel = {0};
mp_chmap_sel_add_waveext_def(&sel);