summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_oss.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-11 21:05:11 +0200
committerwm4 <wm4@nowhere>2019-10-11 21:05:11 +0200
commitcde94e83a9eccade65bb03c361b6ae04beb056b4 (patch)
treed02cebaba4f253d810b840844857fd45d54633bf /audio/out/ao_oss.c
parentd908fbd5849159509300447e6baa09c58d199169 (diff)
downloadmpv-cde94e83a9eccade65bb03c361b6ae04beb056b4.tar.bz2
mpv-cde94e83a9eccade65bb03c361b6ae04beb056b4.tar.xz
audio/out: rip out old unused app/softvolume reporting
This was all dead code. Commit 995c47da9a (over 3 years ago) removed all uses of the controls. It would be nice if AOs could apply a linear gain volume, that only affects the AO's audio stream for low-latency volume adjust and muting. AOCONTROL_HAS_SOFT_VOLUME was supposed to signal this, but to use it, we'd have to thoroughly check whether it really uses the expected semantics, so there's really nothing useful left in this old code.
Diffstat (limited to 'audio/out/ao_oss.c')
-rw-r--r--audio/out/ao_oss.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c
index 6a6253b933..fbc535e413 100644
--- a/audio/out/ao_oss.c
+++ b/audio/out/ao_oss.c
@@ -204,10 +204,6 @@ static int control(struct ao *ao, enum aocontrol cmd, void *arg)
}
return CONTROL_ERROR;
}
-#ifdef SNDCTL_DSP_GETPLAYVOL
- case AOCONTROL_HAS_SOFT_VOLUME:
- return CONTROL_TRUE;
-#endif
}
return CONTROL_UNKNOWN;
}