output/Timer: use C++11 initializers
This commit is contained in:
parent
bd8d8eef3e
commit
2d3c23876c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user