Compare commits

..

No commits in common. "9801e303c0fbeaf8617a1cccd8b90f934c8777cd" and "83996b889fba82dc24f716203f2450b59fa622dc" have entirely different histories.

View file

@ -234,14 +234,14 @@ pub const Runner = struct {
defer params.deinit(); defer params.deinit();
inline for (@typeInfo(@TypeOf(command.parameters)).Struct.fields) |cmd_field| { inline for (@typeInfo(@TypeOf(command.parameters)).Struct.fields) |cmd_field| {
_ = try params.put( try params.put(
cmd_field.name, cmd_field.name,
@field(command.parameters, cmd_field.name), @field(command.parameters, cmd_field.name),
); );
} }
var image = try self.getImage(); var image = try self.getImage();
try image.runCustomPlugin(@TypeOf(command).plugin_type, pos, &params); try image.runCustomPlugin(typ.plugin_type, pos, map);
} }
fn newRunCommandSingle( fn newRunCommandSingle(
@ -261,7 +261,7 @@ pub const Runner = struct {
const ctype = typ.command_type; const ctype = typ.command_type;
switch (ctype) { switch (ctype) {
.lv2_command => try self.executeLV2Command(command.*), .lv2_command => try self.executeLV2Command(command.*),
.custom_command => try self.executePlugin(command.*), .plugin_command => try self.executePlugin(command.*),
else => @panic("TODO support command type"), else => @panic("TODO support command type"),
} }
} }
@ -306,10 +306,7 @@ pub const Runner = struct {
.saturator => try self.newRunCommandSingle(cmd, .saturator), .saturator => try self.newRunCommandSingle(cmd, .saturator),
.vintagedelay => try self.newRunCommandSingle(cmd, .vintagedelay), .vintagedelay => try self.newRunCommandSingle(cmd, .vintagedelay),
.noise => try self.newRunCommandSingle(cmd, .noise), .noise, .wildnoise, .write, .embed => |tag| try self.newRunCommandSingle(cmd, tag),
.wildnoise => try self.newRunCommandSingle(cmd, .wildnoise),
.write => try self.newRunCommandSingle(cmd, .write),
.embed => try self.newRunCommandSingle(cmd, .embed),
else => { else => {
std.debug.warn("TODO support {}\n", .{@tagName(cmd.tag)}); std.debug.warn("TODO support {}\n", .{@tagName(cmd.tag)});