change mono plugin check to a 3+ channel plugin check

i'm not sure if there's anyone with more than two ears who is biological
This commit is contained in:
Luna 2019-07-13 16:48:53 -03:00
parent 8d3cd47665
commit 223fb6628c
1 changed files with 3 additions and 3 deletions

View File

@ -212,12 +212,12 @@ pub const Image = struct {
var ports = try lv2.setupPorts(&ctx);
if (ctx.n_audio_in != 1) {
std.debug.warn("plugin <{}> does not accept mono input.\n", plugin_uri);
if (ctx.n_audio_in > 2) {
std.debug.warn("plugin <{}> accepts more than two channels.\n", plugin_uri);
return ImageError.InvalidPlugin;
}
// TODO check n_audio_out
// TODO check n_audio_out > 2
// now, for each param for the plugin, we find its port, and set
// the value for the port there.