summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorbugmen0t <@>2013-11-04 21:12:06 +0000
committerwm4 <wm4@nowhere>2013-11-06 20:31:38 +0100
commit9db560b9a99b6b04a4e4b03017ef400fa54216d7 (patch)
treec67cb2b3ca0493bfb7b9415635ce065ad54adbe0 /audio
parent0cffd98e8ebf9d0b440e1804548465ea8839a7cb (diff)
downloadmpv-9db560b9a99b6b04a4e4b03017ef400fa54216d7.tar.bz2
mpv-9db560b9a99b6b04a4e4b03017ef400fa54216d7.tar.xz
ao_oss: don't enable -softvol by default on OSSv4
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_oss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c
index efede703c2..9085d05e5b 100644
--- a/audio/out/ao_oss.c
+++ b/audio/out/ao_oss.c
@@ -196,6 +196,10 @@ static int init(struct ao *ao)
struct priv *p = ao->priv;
int oss_format;
+#ifdef SNDCTL_DSP_GETPLAYVOL
+ ao->no_persistent_volume = true;
+#endif
+
const char *mchan = NULL;
if (p->cfg_oss_mixer_channel && p->cfg_oss_mixer_channel[0])
mchan = p->cfg_oss_mixer_channel;