summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-01-24 22:20:09 +0100
committerMax Kellermann <max@musicpd.org>2017-01-24 23:08:16 +0100
commit6b968beede4e80975283e7eb8e08c71ac5d7a1a8 (patch)
treebb00c45dcb054d9c48b42924a56c053a105161d1 /src
parentf68dd1bffb16ae0d13cd7f5e901a92cd5610033a (diff)
output/alsa: convert to class, make attributes private
Diffstat (limited to 'src')
-rw-r--r--src/output/plugins/AlsaOutputPlugin.cxx5
1 files changed, 4 insertions, 1 deletions
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<AlsaOutput>;
+
AudioOutput base;
Manual<PcmExport> pcm_export;
@@ -121,6 +123,7 @@ struct AlsaOutput {
*/
uint8_t *silence;
+public:
AlsaOutput(const ConfigBlock &block);
~AlsaOutput() {