output/Timer: pass size_t to Add()
This commit is contained in:
parent
2d3c23876c
commit
a3ca9963a5
@ -42,7 +42,8 @@ void Timer::Reset()
|
|||||||
started = false;
|
started = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Timer::Add(int size)
|
void
|
||||||
|
Timer::Add(size_t size)
|
||||||
{
|
{
|
||||||
assert(started);
|
assert(started);
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#define MPD_TIMER_HXX
|
#define MPD_TIMER_HXX
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
struct AudioFormat;
|
struct AudioFormat;
|
||||||
|
|
||||||
@ -36,7 +37,7 @@ public:
|
|||||||
void Start();
|
void Start();
|
||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
void Add(int size);
|
void Add(size_t size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the number of milliseconds to sleep to get back to sync.
|
* Returns the number of milliseconds to sleep to get back to sync.
|
||||||
|
Loading…
Reference in New Issue
Block a user