event/TimerEvent: add type alias for std::chrono::steady_clock::duration
This commit is contained in:
@@ -20,12 +20,11 @@
|
||||
#ifndef MPD_ALSA_NON_BLOCK_HXX
|
||||
#define MPD_ALSA_NON_BLOCK_HXX
|
||||
|
||||
#include "event/Chrono.hxx"
|
||||
#include "util/ReusableArray.hxx"
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
#include <chrono>
|
||||
|
||||
class MultiSocketMonitor;
|
||||
|
||||
/**
|
||||
@@ -39,8 +38,8 @@ public:
|
||||
/**
|
||||
* Throws on error.
|
||||
*/
|
||||
std::chrono::steady_clock::duration PrepareSockets(MultiSocketMonitor &m,
|
||||
snd_pcm_t *pcm);
|
||||
Event::Duration PrepareSockets(MultiSocketMonitor &m,
|
||||
snd_pcm_t *pcm);
|
||||
|
||||
/**
|
||||
* Wrapper for snd_pcm_poll_descriptors_revents(), to be
|
||||
@@ -59,8 +58,8 @@ class AlsaNonBlockMixer {
|
||||
ReusableArray<pollfd> pfd_buffer;
|
||||
|
||||
public:
|
||||
std::chrono::steady_clock::duration PrepareSockets(MultiSocketMonitor &m,
|
||||
snd_mixer_t *mixer) noexcept;
|
||||
Event::Duration PrepareSockets(MultiSocketMonitor &m,
|
||||
snd_mixer_t *mixer) noexcept;
|
||||
|
||||
/**
|
||||
* Wrapper for snd_mixer_poll_descriptors_revents(), to be
|
||||
|
||||
Reference in New Issue
Block a user