diff options
author | Max Kellermann <max@musicpd.org> | 2017-08-09 16:58:59 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-08-09 17:03:07 +0200 |
commit | 9c9a9ccd5c3ee3c8a43ff3a5ff84ca645800263f (patch) | |
tree | 6bf0f6b0ac5b837111e90fb66dd385c27b21cca6 /src/output/Interface.hxx | |
parent | 7381236de6412f404eaba245d4f1a769a0f5173c (diff) |
output/Interface: convert to class, make attributes private
Diffstat (limited to 'src/output/Interface.hxx')
-rw-r--r-- | src/output/Interface.hxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/output/Interface.hxx b/src/output/Interface.hxx index 106b4b26d..645a94b2e 100644 --- a/src/output/Interface.hxx +++ b/src/output/Interface.hxx @@ -22,7 +22,7 @@ struct AudioOutputPlugin; -struct AudioOutput { +class AudioOutput { /** * The plugin which implements this output device. */ @@ -30,9 +30,18 @@ struct AudioOutput { bool need_fully_defined_audio_format = false; +public: AudioOutput(const AudioOutputPlugin &_plugin) :plugin(_plugin) {} + const AudioOutputPlugin &GetPlugin() const { + return plugin; + } + + bool GetNeedFullyDefinedAudioFormat() const { + return need_fully_defined_audio_format; + } + /** * Plugins shall call this method if they require an * "audio_format" setting which evaluates |