diff options
Diffstat (limited to 'src/MixerInternal.hxx')
-rw-r--r-- | src/MixerInternal.hxx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/MixerInternal.hxx b/src/MixerInternal.hxx index 9c39e3e35..f922a22bd 100644 --- a/src/MixerInternal.hxx +++ b/src/MixerInternal.hxx @@ -25,7 +25,8 @@ #include <glib.h> -struct mixer { +class Mixer { +public: const struct mixer_plugin *plugin; /** @@ -44,9 +45,17 @@ struct mixer { * automatically? */ bool failed; -}; -void -mixer_init(struct mixer *mixer, const struct mixer_plugin *plugin); +public: + Mixer(const mixer_plugin &_plugin) + :plugin(&_plugin), + mutex(g_mutex_new()), + open(false), + failed(false) {} + + bool IsPlugin(const mixer_plugin &other) const { + return plugin == &other; + } +}; #endif |