Commit 2d3c2387 authored by Max Kellermann's avatar Max Kellermann

output/Timer: use C++11 initializers

parent bd8d8eef
......@@ -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())
{
}
......
......@@ -26,7 +26,7 @@ struct AudioFormat;
class Timer {
uint64_t time;
bool started;
bool started = false;
const int rate;
public:
explicit Timer(AudioFormat af);
......
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