af: remove unused GET_VOLUME code

The entire af code is going to be removed, but Ordnung muss sein.
This commit is contained in:
wm4 2017-04-27 00:22:30 +02:00
parent afead7a356
commit 7f78929050
2 changed files with 0 additions and 6 deletions

View File

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

View File

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