summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-04-27 00:22:30 +0200
committerwm4 <wm4@nowhere>2017-04-27 00:22:30 +0200
commit7f78929050540a243fddcb6c9c74f62436fd3246 (patch)
treecf4b78aae616d44428beb5e3aa0726618927cd47 /audio
parentafead7a3566e455cd2ceec54010a95387b7b022f (diff)
downloadmpv-7f78929050540a243fddcb6c9c74f62436fd3246.tar.bz2
mpv-7f78929050540a243fddcb6c9c74f62436fd3246.tar.xz
af: remove unused GET_VOLUME code
The entire af code is going to be removed, but Ordnung muss sein.
Diffstat (limited to 'audio')
-rw-r--r--audio/filter/af.h1
-rw-r--r--audio/filter/af_volume.c5
2 files changed, 0 insertions, 6 deletions
diff --git a/audio/filter/af.h b/audio/filter/af.h
index a773f561b3..9c7b1fbfa5 100644
--- a/audio/filter/af.h
+++ b/audio/filter/af.h
@@ -113,7 +113,6 @@ enum af_control {
AF_CONTROL_REINIT = 1,
AF_CONTROL_RESET,
AF_CONTROL_SET_VOLUME,
- AF_CONTROL_GET_VOLUME,
AF_CONTROL_SET_PAN_LEVEL,
AF_CONTROL_SET_PAN_NOUT,
AF_CONTROL_SET_PAN_BALANCE,
diff --git a/audio/filter/af_volume.c b/audio/filter/af_volume.c
index cc97ac8b2c..8fffc08853 100644
--- a/audio/filter/af_volume.c
+++ b/audio/filter/af_volume.c
@@ -30,7 +30,6 @@
#include "demux/demux.h"
struct priv {
- float vol; // User-specified non-linear volume
float level; // User-specified gain level for each channel
float rgain; // Replaygain level
int rgain_track; // Enable/disable track based replaygain
@@ -105,13 +104,9 @@ static int control(struct af_instance *af, int cmd, void *arg)
return af_test_output(af, in);
}
case AF_CONTROL_SET_VOLUME:
- s->vol = *(float *)arg;
s->level = *(float *)arg;
MP_VERBOSE(af, "volume gain: %f\n", s->level);
return AF_OK;
- case AF_CONTROL_GET_VOLUME:
- *(float *)arg = s->vol;
- return AF_OK;
}
return AF_UNKNOWN;
}