mixer/Volume: remove logging (mostly useless)
This commit is contained in:
parent
dc07180e48
commit
615c301961
|
@ -21,10 +21,8 @@
|
||||||
#include "output/MultipleOutputs.hxx"
|
#include "output/MultipleOutputs.hxx"
|
||||||
#include "Idle.hxx"
|
#include "Idle.hxx"
|
||||||
#include "util/StringCompare.hxx"
|
#include "util/StringCompare.hxx"
|
||||||
#include "util/Domain.hxx"
|
|
||||||
#include "system/PeriodClock.hxx"
|
#include "system/PeriodClock.hxx"
|
||||||
#include "io/BufferedOutputStream.hxx"
|
#include "io/BufferedOutputStream.hxx"
|
||||||
#include "Log.hxx"
|
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
@ -32,8 +30,6 @@
|
||||||
|
|
||||||
#define SW_VOLUME_STATE "sw_volume: "
|
#define SW_VOLUME_STATE "sw_volume: "
|
||||||
|
|
||||||
static constexpr Domain volume_domain("volume");
|
|
||||||
|
|
||||||
static unsigned volume_software_set = 100;
|
static unsigned volume_software_set = 100;
|
||||||
|
|
||||||
/** the cached hardware mixer value; invalid if negative */
|
/** the cached hardware mixer value; invalid if negative */
|
||||||
|
@ -105,9 +101,7 @@ read_sw_volume_state(const char *line, MultipleOutputs &outputs)
|
||||||
sv = strtol(line, &end, 10);
|
sv = strtol(line, &end, 10);
|
||||||
if (*end == 0 && sv >= 0 && sv <= 100)
|
if (*end == 0 && sv >= 0 && sv <= 100)
|
||||||
software_volume_change(outputs, sv);
|
software_volume_change(outputs, sv);
|
||||||
else
|
|
||||||
FmtWarning(volume_domain,
|
|
||||||
"Can't parse software volume: {}", line);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue