diff options
author | Max Kellermann <max@musicpd.org> | 2016-12-28 21:44:18 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-12-28 22:00:29 +0100 |
commit | d5e422970c8973947686ae698a366e07840afaa2 (patch) | |
tree | 0144b344cc62b9855747f01883592e4591be99cd /src/output/plugins/OpenALOutputPlugin.cxx | |
parent | 871ba5a488683055bcd556610bc974d94984f32f (diff) |
output/Plugin: delay() returns std::chrono::steady_clock::duration
Diffstat (limited to 'src/output/plugins/OpenALOutputPlugin.cxx')
-rw-r--r-- | src/output/plugins/OpenALOutputPlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/plugins/OpenALOutputPlugin.cxx b/src/output/plugins/OpenALOutputPlugin.cxx index 0db98a2cb..7b72adcf2 100644 --- a/src/output/plugins/OpenALOutputPlugin.cxx +++ b/src/output/plugins/OpenALOutputPlugin.cxx @@ -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); |