From bf803e241f4f1210e7ed1e71895a561de81d7a94 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Jan 2014 23:39:48 +0100 Subject: AudioOutput: pass plugin to constructor Make it "const". --- src/output/plugins/OpenALOutputPlugin.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/output/plugins/OpenALOutputPlugin.cxx') diff --git a/src/output/plugins/OpenALOutputPlugin.cxx b/src/output/plugins/OpenALOutputPlugin.cxx index d40d0737e..b0f863374 100644 --- a/src/output/plugins/OpenALOutputPlugin.cxx +++ b/src/output/plugins/OpenALOutputPlugin.cxx @@ -48,9 +48,11 @@ struct OpenALOutput { ALenum format; ALuint frequency; + OpenALOutput() + :base(openal_output_plugin) {} + bool Initialize(const config_param ¶m, Error &error_r) { - return ao_base_init(&base, &openal_output_plugin, param, - error_r); + return ao_base_init(&base, param, error_r); } }; -- cgit v1.2.3