output/Interface: convert to class, make attributes private

This commit is contained in:
Max Kellermann
2017-08-09 16:58:59 +02:00
parent 7381236de6
commit 9c9a9ccd5c
6 changed files with 36 additions and 27 deletions
+3 -3
View File
@@ -32,15 +32,15 @@
bool
FilteredAudioOutput::SupportsEnableDisable() const noexcept
{
assert((output->plugin.enable == nullptr) == (output->plugin.disable == nullptr));
assert((output->GetPlugin().enable == nullptr) == (output->GetPlugin().disable == nullptr));
return output->plugin.enable != nullptr;
return output->GetPlugin().enable != nullptr;
}
bool
FilteredAudioOutput::SupportsPause() const noexcept
{
return output->plugin.pause != nullptr;
return output->GetPlugin().pause != nullptr;
}
void