summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/module-ladspa-sink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/module-ladspa-sink.c b/src/modules/module-ladspa-sink.c
index 38b94e32e..a6290b9d6 100644
--- a/src/modules/module-ladspa-sink.c
+++ b/src/modules/module-ladspa-sink.c
@@ -981,6 +981,11 @@ int pa__init(pa_module*m) {
goto fail;
}
+ if (ss.format != PA_SAMPLE_FLOAT32) {
+ pa_log("LADSPA accepts float format only");
+ goto fail;
+ }
+
if (!(plugin = pa_modargs_get_value(ma, "plugin", NULL))) {
pa_log("Missing LADSPA plugin name");
goto fail;