aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/Wrapper.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output/Wrapper.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/output/Wrapper.hxx b/src/output/Wrapper.hxx
index e6af29634..c043849bb 100644
--- a/src/output/Wrapper.hxx
+++ b/src/output/Wrapper.hxx
@@ -22,14 +22,16 @@
#include "util/Cast.hxx"
+struct ConfigBlock;
+
template<class T>
struct AudioOutputWrapper {
static T &Cast(AudioOutput &ao) {
return ContainerCast(ao, &T::base);
}
- static AudioOutput *Init(const config_param &param, Error &error) {
- T *t = T::Create(param, error);
+ static AudioOutput *Init(const ConfigBlock &block, Error &error) {
+ T *t = T::Create(block, error);
return t != nullptr
? &t->base
: nullptr;