diff options
author | Max Kellermann <max@duempel.org> | 2015-01-07 18:40:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-07 18:43:52 +0100 |
commit | 18e32abda90a60a8df5f50008f405fa66f7daed0 (patch) | |
tree | a017b4f6cf8245e1978f356e306a2a5c0766d68c | |
parent | 15d29da43baa1c6285ce559547efb62937cfcf93 (diff) | |
download | mpd-18e32abda90a60a8df5f50008f405fa66f7daed0.tar.gz mpd-18e32abda90a60a8df5f50008f405fa66f7daed0.tar.xz mpd-18e32abda90a60a8df5f50008f405fa66f7daed0.zip |
output/oss: convert struct to class
Diffstat (limited to '')
-rw-r--r-- | src/output/plugins/OssOutputPlugin.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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<OssOutput>; + 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) {} |