diff options
author | Max Kellermann <max@duempel.org> | 2014-01-28 23:39:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-29 08:10:18 +0100 |
commit | bf803e241f4f1210e7ed1e71895a561de81d7a94 (patch) | |
tree | d9894df2da6ad9478d5459f7a2af0974bf5a4979 /src/output/plugins/OpenALOutputPlugin.cxx | |
parent | 8a8d023f90e057ae9b70377a132f4259b173d436 (diff) | |
download | mpd-bf803e241f4f1210e7ed1e71895a561de81d7a94.tar.gz mpd-bf803e241f4f1210e7ed1e71895a561de81d7a94.tar.xz mpd-bf803e241f4f1210e7ed1e71895a561de81d7a94.zip |
AudioOutput: pass plugin to constructor
Make it "const".
Diffstat (limited to 'src/output/plugins/OpenALOutputPlugin.cxx')
-rw-r--r-- | src/output/plugins/OpenALOutputPlugin.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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); } }; |