AudioOutput: add constructor and destructor

This commit is contained in:
Max Kellermann
2014-01-28 12:24:48 +01:00
parent 07b89b2bad
commit c4403c523f
19 changed files with 27 additions and 101 deletions

View File

@@ -52,10 +52,6 @@ struct OpenALOutput {
return ao_base_init(&base, &openal_output_plugin, param,
error_r);
}
void Deinitialize() {
ao_base_finish(&base);
}
};
static constexpr Domain openal_output_domain("openal_output");
@@ -157,7 +153,6 @@ openal_finish(AudioOutput *ao)
{
OpenALOutput *od = (OpenALOutput *)ao;
od->Deinitialize();
delete od;
}