output/Timer: use C++11 initializers

This commit is contained in:
Max Kellermann 2016-12-28 10:11:48 +01:00
parent bd8d8eef3e
commit 2d3c23876c
2 changed files with 2 additions and 3 deletions

View File

@ -27,8 +27,7 @@
#include <assert.h>
Timer::Timer(const AudioFormat af)
:started(false),
rate(af.sample_rate * af.GetFrameSize())
:rate(af.sample_rate * af.GetFrameSize())
{
}

View File

@ -26,7 +26,7 @@ struct AudioFormat;
class Timer {
uint64_t time;
bool started;
bool started = false;
const int rate;
public:
explicit Timer(AudioFormat af);