Commit 85ef034f authored by Max Kellermann's avatar Max Kellermann

filter/ReplayGain: use C++11 initializers

parent 59141f62
......@@ -41,7 +41,7 @@ class ReplayGainFilter final : public Filter {
* If set, then this hardware mixer is used for applying
* replay gain, instead of the software volume library.
*/
Mixer *mixer;
Mixer *mixer = nullptr;
/**
* The base volume level for scale=1.0, between 1 and 100
......@@ -49,7 +49,7 @@ class ReplayGainFilter final : public Filter {
*/
unsigned base;
ReplayGainMode mode;
ReplayGainMode mode = REPLAY_GAIN_OFF;
ReplayGainInfo info;
......@@ -68,8 +68,7 @@ class ReplayGainFilter final : public Filter {
PcmVolume pv;
public:
ReplayGainFilter()
:mixer(nullptr), mode(REPLAY_GAIN_OFF) {
ReplayGainFilter() {
info.Clear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment