From 6b968beede4e80975283e7eb8e08c71ac5d7a1a8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Jan 2017 22:20:09 +0100 Subject: [PATCH] output/alsa: convert to class, make attributes private --- src/output/plugins/AlsaOutputPlugin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 466449721..b9878bfed 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -50,7 +50,9 @@ static constexpr unsigned MPD_ALSA_BUFFER_TIME_US = 500000; static constexpr unsigned MPD_ALSA_RETRY_NR = 5; -struct AlsaOutput { +class AlsaOutput { + friend struct AudioOutputWrapper; + AudioOutput base; Manual pcm_export; @@ -121,6 +123,7 @@ struct AlsaOutput { */ uint8_t *silence; +public: AlsaOutput(const ConfigBlock &block); ~AlsaOutput() {