output/Plugin: delay() returns std::chrono::steady_clock::duration

This commit is contained in:
Max Kellermann
2016-12-28 21:44:18 +01:00
parent 871ba5a488
commit d5e422970c
16 changed files with 49 additions and 42 deletions

View File

@@ -58,13 +58,13 @@ class OpenALOutput {
void Close();
gcc_pure
unsigned Delay() const {
std::chrono::steady_clock::duration Delay() const {
return filled < NUM_BUFFERS || HasProcessed()
? 0
? std::chrono::steady_clock::duration::zero()
/* we don't know exactly how long we must wait
for the next buffer to finish, so this is a
random guess: */
: 50;
: std::chrono::milliseconds(50);
}
size_t Play(const void *chunk, size_t size);