mixer/software: use C++11 initializers
This commit is contained in:
parent
4a6df9f961
commit
d93271e86d
@ -47,19 +47,17 @@ class SoftwareMixer final : public Mixer {
|
|||||||
* software_mixer_get_filter(); after that, the caller will be
|
* software_mixer_get_filter(); after that, the caller will be
|
||||||
* responsible for the #Filter.
|
* responsible for the #Filter.
|
||||||
*/
|
*/
|
||||||
bool owns_filter;
|
bool owns_filter = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current volume in percent (0..100).
|
* The current volume in percent (0..100).
|
||||||
*/
|
*/
|
||||||
unsigned volume;
|
unsigned volume = 100;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SoftwareMixer(MixerListener &_listener)
|
SoftwareMixer(MixerListener &_listener)
|
||||||
:Mixer(software_mixer_plugin, _listener),
|
:Mixer(software_mixer_plugin, _listener),
|
||||||
filter(CreateVolumeFilter()),
|
filter(CreateVolumeFilter())
|
||||||
owns_filter(true),
|
|
||||||
volume(100)
|
|
||||||
{
|
{
|
||||||
assert(filter != nullptr);
|
assert(filter != nullptr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user