diff options
author | Max Kellermann <max@duempel.org> | 2013-04-16 21:33:25 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-04-16 21:33:25 +0200 |
commit | cb8449a66dfa7503951d3c9a27a957918849ac57 (patch) | |
tree | 33d1af378739fb46d12569b03022697226f5b40f /src/filter | |
parent | 621467717d93221a63c9234d4273d9629635c30f (diff) | |
download | mpd-cb8449a66dfa7503951d3c9a27a957918849ac57.tar.gz mpd-cb8449a66dfa7503951d3c9a27a957918849ac57.tar.xz mpd-cb8449a66dfa7503951d3c9a27a957918849ac57.zip |
MixerInternal: convert to class
Diffstat (limited to 'src/filter')
-rw-r--r-- | src/filter/ReplayGainFilterPlugin.cxx | 6 | ||||
-rw-r--r-- | src/filter/ReplayGainFilterPlugin.hxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/filter/ReplayGainFilterPlugin.cxx b/src/filter/ReplayGainFilterPlugin.cxx index fed474bd5..f590d57f5 100644 --- a/src/filter/ReplayGainFilterPlugin.cxx +++ b/src/filter/ReplayGainFilterPlugin.cxx @@ -43,7 +43,7 @@ class ReplayGainFilter final : public Filter { * If set, then this hardware mixer is used for applying * replay gain, instead of the software volume library. */ - struct mixer *mixer; + Mixer *mixer; /** * The base volume level for scale=1.0, between 1 and 100 @@ -80,7 +80,7 @@ public: replay_gain_info_init(&info); } - void SetMixer(struct mixer *_mixer, unsigned _base) { + void SetMixer(Mixer *_mixer, unsigned _base) { assert(_mixer == NULL || (_base > 0 && _base <= 100)); mixer = _mixer; @@ -217,7 +217,7 @@ const struct filter_plugin replay_gain_filter_plugin = { }; void -replay_gain_filter_set_mixer(Filter *_filter, struct mixer *mixer, +replay_gain_filter_set_mixer(Filter *_filter, Mixer *mixer, unsigned base) { ReplayGainFilter *filter = (ReplayGainFilter *)_filter; diff --git a/src/filter/ReplayGainFilterPlugin.hxx b/src/filter/ReplayGainFilterPlugin.hxx index dd8ceb953..06b778f8f 100644 --- a/src/filter/ReplayGainFilterPlugin.hxx +++ b/src/filter/ReplayGainFilterPlugin.hxx @@ -23,7 +23,7 @@ #include "replay_gain_info.h" class Filter; -struct mixer; +class Mixer; /** * Enables or disables the hardware mixer for applying replay gain. @@ -34,7 +34,7 @@ struct mixer; * (including). */ void -replay_gain_filter_set_mixer(Filter *_filter, struct mixer *mixer, +replay_gain_filter_set_mixer(Filter *_filter, Mixer *mixer, unsigned base); /** |