From 18e32abda90a60a8df5f50008f405fa66f7daed0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Jan 2015 18:40:30 +0100 Subject: output/oss: convert struct to class --- src/output/plugins/OssOutputPlugin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/output/plugins/OssOutputPlugin.cxx b/src/output/plugins/OssOutputPlugin.cxx index 366f7fa56..36a960b5d 100644 --- a/src/output/plugins/OssOutputPlugin.cxx +++ b/src/output/plugins/OssOutputPlugin.cxx @@ -58,7 +58,9 @@ #include "util/Manual.hxx" #endif -struct OssOutput { +class OssOutput { + friend struct AudioOutputWrapper; + AudioOutput base; #ifdef AFMT_S24_PACKED @@ -80,6 +82,7 @@ struct OssOutput { */ int oss_format; +public: OssOutput(const char *_device=nullptr) :base(oss_output_plugin), fd(-1), device(_device) {} -- cgit v1.2.3