mirror of https://github.com/mpv-player/mpv
af: remove unused GET_VOLUME code
The entire af code is going to be removed, but Ordnung muss sein.
This commit is contained in:
parent
afead7a356
commit
7f78929050
|
@ -113,7 +113,6 @@ enum af_control {
|
||||||
AF_CONTROL_REINIT = 1,
|
AF_CONTROL_REINIT = 1,
|
||||||
AF_CONTROL_RESET,
|
AF_CONTROL_RESET,
|
||||||
AF_CONTROL_SET_VOLUME,
|
AF_CONTROL_SET_VOLUME,
|
||||||
AF_CONTROL_GET_VOLUME,
|
|
||||||
AF_CONTROL_SET_PAN_LEVEL,
|
AF_CONTROL_SET_PAN_LEVEL,
|
||||||
AF_CONTROL_SET_PAN_NOUT,
|
AF_CONTROL_SET_PAN_NOUT,
|
||||||
AF_CONTROL_SET_PAN_BALANCE,
|
AF_CONTROL_SET_PAN_BALANCE,
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
#include "demux/demux.h"
|
#include "demux/demux.h"
|
||||||
|
|
||||||
struct priv {
|
struct priv {
|
||||||
float vol; // User-specified non-linear volume
|
|
||||||
float level; // User-specified gain level for each channel
|
float level; // User-specified gain level for each channel
|
||||||
float rgain; // Replaygain level
|
float rgain; // Replaygain level
|
||||||
int rgain_track; // Enable/disable track based replaygain
|
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);
|
return af_test_output(af, in);
|
||||||
}
|
}
|
||||||
case AF_CONTROL_SET_VOLUME:
|
case AF_CONTROL_SET_VOLUME:
|
||||||
s->vol = *(float *)arg;
|
|
||||||
s->level = *(float *)arg;
|
s->level = *(float *)arg;
|
||||||
MP_VERBOSE(af, "volume gain: %f\n", s->level);
|
MP_VERBOSE(af, "volume gain: %f\n", s->level);
|
||||||
return AF_OK;
|
return AF_OK;
|
||||||
case AF_CONTROL_GET_VOLUME:
|
|
||||||
*(float *)arg = s->vol;
|
|
||||||
return AF_OK;
|
|
||||||
}
|
}
|
||||||
return AF_UNKNOWN;
|
return AF_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue