output/MultipleOutputs: use C++11 initializers

This commit is contained in:
Max Kellermann 2016-04-21 13:27:45 +02:00
parent e8121fdc11
commit 4c6619e6c5
2 changed files with 5 additions and 8 deletions

View File

@ -36,10 +36,7 @@
#include <string.h>
MultipleOutputs::MultipleOutputs(MixerListener &_mixer_listener)
:mixer_listener(_mixer_listener),
input_audio_format(AudioFormat::Undefined()),
buffer(nullptr), pipe(nullptr),
elapsed_time(SignedSongTime::Negative())
:mixer_listener(_mixer_listener)
{
}

View File

@ -49,24 +49,24 @@ class MultipleOutputs {
std::vector<AudioOutput *> outputs;
AudioFormat input_audio_format;
AudioFormat input_audio_format = AudioFormat::Undefined();
/**
* The #MusicBuffer object where consumed chunks are returned.
*/
MusicBuffer *buffer;
MusicBuffer *buffer = nullptr;
/**
* The #MusicPipe object which feeds all audio outputs. It is
* filled by audio_output_all_play().
*/
MusicPipe *pipe;
MusicPipe *pipe = nullptr;
/**
* The "elapsed_time" stamp of the most recently finished
* chunk.
*/
SignedSongTime elapsed_time;
SignedSongTime elapsed_time = SignedSongTime::Negative();
public:
/**