From 789a289c2e78f0f924bf416cc4feee0d8861887d Mon Sep 17 00:00:00 2001 From: casey langen Date: Tue, 1 Jan 2019 21:55:05 -0800 Subject: [PATCH] Removed SndioOut cruft --- src/plugins/sndioout/SndioOut.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/plugins/sndioout/SndioOut.cpp b/src/plugins/sndioout/SndioOut.cpp index a2c9ee96d..401907af7 100644 --- a/src/plugins/sndioout/SndioOut.cpp +++ b/src/plugins/sndioout/SndioOut.cpp @@ -39,8 +39,6 @@ #include #include #include -#include -#include #define BUFFER_COUNT 16 #define ERROR(str) std::cerr << "SndioOut Error: " << str << "\n"; @@ -98,28 +96,6 @@ extern "C" void SetPreferences(musik::core::sdk::IPreferences* prefs) { } } -static bool waitForDevice(sio_hdl* hdl) { - INFO("waiting for device") - int nfds, revents; - struct pollfd pfds[1]; - do { - nfds = sio_pollfd(hdl, pfds, POLLOUT); - if (nfds > 0) { - if (poll(pfds, nfds, -1) < 0) { - INFO("poll failed"); - return false; - } - } - revents = sio_revents(hdl, pfds); - if (revents & POLLHUP) { - INFO("device disappeared"); - return false; - } - } while (!(revents & POLLOUT)); - INFO("done waiting for device") - return true; -} - SndioOut::SndioOut() { INFO("---------- sndout.ctor ----------") this->volume = 1.0f;