aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/Finish.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-28 12:24:48 +0100
committerMax Kellermann <max@duempel.org>2014-01-28 12:37:58 +0100
commitc4403c523f3b5514be499ff20887ec340f2272e9 (patch)
treecee7034796c386517f54ab2b61e762939c458f6f /src/output/Finish.cxx
parent07b89b2bad7543fa07347ffdccc71d4899dd2b02 (diff)
downloadmpd-c4403c523f3b5514be499ff20887ec340f2272e9.tar.gz
mpd-c4403c523f3b5514be499ff20887ec340f2272e9.tar.xz
mpd-c4403c523f3b5514be499ff20887ec340f2272e9.zip
AudioOutput: add constructor and destructor
Diffstat (limited to 'src/output/Finish.cxx')
-rw-r--r--src/output/Finish.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/output/Finish.cxx b/src/output/Finish.cxx
index b3f94fe31..be2ca463e 100644
--- a/src/output/Finish.cxx
+++ b/src/output/Finish.cxx
@@ -25,19 +25,18 @@
#include <assert.h>
-void
-ao_base_finish(AudioOutput *ao)
+AudioOutput::~AudioOutput()
{
- assert(!ao->open);
- assert(!ao->fail_timer.IsDefined());
- assert(!ao->thread.IsDefined());
+ assert(!open);
+ assert(!fail_timer.IsDefined());
+ assert(!thread.IsDefined());
- if (ao->mixer != nullptr)
- mixer_free(ao->mixer);
+ if (mixer != nullptr)
+ mixer_free(mixer);
- delete ao->replay_gain_filter;
- delete ao->other_replay_gain_filter;
- delete ao->filter;
+ delete replay_gain_filter;
+ delete other_replay_gain_filter;
+ delete filter;
}
void