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 { ...@@ -41,7 +41,7 @@ class ReplayGainFilter final : public Filter {
* If set, then this hardware mixer is used for applying * If set, then this hardware mixer is used for applying
* replay gain, instead of the software volume library. * 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 * The base volume level for scale=1.0, between 1 and 100
...@@ -49,7 +49,7 @@ class ReplayGainFilter final : public Filter { ...@@ -49,7 +49,7 @@ class ReplayGainFilter final : public Filter {
*/ */
unsigned base; unsigned base;
ReplayGainMode mode; ReplayGainMode mode = REPLAY_GAIN_OFF;
ReplayGainInfo info; ReplayGainInfo info;
...@@ -68,8 +68,7 @@ class ReplayGainFilter final : public Filter { ...@@ -68,8 +68,7 @@ class ReplayGainFilter final : public Filter {
PcmVolume pv; PcmVolume pv;
public: public:
ReplayGainFilter() ReplayGainFilter() {
:mixer(nullptr), mode(REPLAY_GAIN_OFF) {
info.Clear(); 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