diff options
author | wm4 <wm4@nowhere> | 2017-04-27 00:22:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-27 00:22:30 +0200 |
commit | 7f78929050540a243fddcb6c9c74f62436fd3246 (patch) | |
tree | cf4b78aae616d44428beb5e3aa0726618927cd47 /audio/filter/af_volume.c | |
parent | afead7a3566e455cd2ceec54010a95387b7b022f (diff) | |
download | mpv-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/filter/af_volume.c')
-rw-r--r-- | audio/filter/af_volume.c | 5 |
1 files changed, 0 insertions, 5 deletions
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; } |