diff options
author | Max Kellermann <max@musicpd.org> | 2018-11-11 07:34:08 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-11-11 12:37:25 +0100 |
commit | 12308a0f551b7928da02c3d7bd0681fa9e4243e7 (patch) | |
tree | 647bc69f0078e15a8dbd83e25ef939df42179695 /src/input | |
parent | a958abde2f8150877873a274b573baa3685d6a21 (diff) |
lib/alsa/NonBlock: move the functions into a class managing the state
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/plugins/AlsaInputPlugin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input/plugins/AlsaInputPlugin.cxx b/src/input/plugins/AlsaInputPlugin.cxx index ceb8d64b6..801a16fd0 100644 --- a/src/input/plugins/AlsaInputPlugin.cxx +++ b/src/input/plugins/AlsaInputPlugin.cxx @@ -34,7 +34,6 @@ #include "util/Domain.hxx" #include "util/RuntimeError.hxx" #include "util/StringCompare.hxx" -#include "util/ReusableArray.hxx" #include "util/ASCII.hxx" #include "Log.hxx" #include "event/MultiSocketMonitor.hxx" @@ -69,7 +68,7 @@ class AlsaInputStream final snd_pcm_t *const capture_handle; const size_t frame_size; - ReusableArray<pollfd> pfd_buffer; + AlsaNonBlockPcm non_block; DeferEvent defer_invalidate_sockets; @@ -180,7 +179,7 @@ AlsaInputStream::PrepareSockets() noexcept return std::chrono::steady_clock::duration(-1); } - return PrepareAlsaPcmSockets(*this, capture_handle, pfd_buffer); + return non_block.PrepareSockets(*this, capture_handle); } void |