output/Timer: use C++11 initializers
This commit is contained in:
parent
bd8d8eef3e
commit
2d3c23876c
@ -27,8 +27,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
Timer::Timer(const AudioFormat af)
|
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 {
|
class Timer {
|
||||||
uint64_t time;
|
uint64_t time;
|
||||||
bool started;
|
bool started = false;
|
||||||
const int rate;
|
const int rate;
|
||||||
public:
|
public:
|
||||||
explicit Timer(AudioFormat af);
|
explicit Timer(AudioFormat af);
|
||||||
|
Loading…
Reference in New Issue
Block a user