output/Timer: pass size_t to Add()

This commit is contained in:
Max Kellermann 2016-12-28 10:17:29 +01:00
parent 2d3c23876c
commit a3ca9963a5
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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.