1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-30 15:29:56 +00:00

ao_oss: don't enable -softvol by default on OSSv4

This commit is contained in:
bugmen0t 2013-11-04 21:12:06 +00:00 committed by wm4
parent 0cffd98e8e
commit 9db560b9a9

View File

@ -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;