Compare commits
2 commits
83996b889f
...
9801e303c0
Author | SHA1 | Date | |
---|---|---|---|
9801e303c0 | |||
2b4f428890 |
1 changed files with 7 additions and 4 deletions
|
@ -234,14 +234,14 @@ pub const Runner = struct {
|
|||
defer params.deinit();
|
||||
|
||||
inline for (@typeInfo(@TypeOf(command.parameters)).Struct.fields) |cmd_field| {
|
||||
try params.put(
|
||||
_ = try params.put(
|
||||
cmd_field.name,
|
||||
@field(command.parameters, cmd_field.name),
|
||||
);
|
||||
}
|
||||
|
||||
var image = try self.getImage();
|
||||
try image.runCustomPlugin(typ.plugin_type, pos, map);
|
||||
try image.runCustomPlugin(@TypeOf(command).plugin_type, pos, ¶ms);
|
||||
}
|
||||
|
||||
fn newRunCommandSingle(
|
||||
|
@ -261,7 +261,7 @@ pub const Runner = struct {
|
|||
const ctype = typ.command_type;
|
||||
switch (ctype) {
|
||||
.lv2_command => try self.executeLV2Command(command.*),
|
||||
.plugin_command => try self.executePlugin(command.*),
|
||||
.custom_command => try self.executePlugin(command.*),
|
||||
else => @panic("TODO support command type"),
|
||||
}
|
||||
}
|
||||
|
@ -306,7 +306,10 @@ pub const Runner = struct {
|
|||
.saturator => try self.newRunCommandSingle(cmd, .saturator),
|
||||
.vintagedelay => try self.newRunCommandSingle(cmd, .vintagedelay),
|
||||
|
||||
.noise, .wildnoise, .write, .embed => |tag| try self.newRunCommandSingle(cmd, tag),
|
||||
.noise => try self.newRunCommandSingle(cmd, .noise),
|
||||
.wildnoise => try self.newRunCommandSingle(cmd, .wildnoise),
|
||||
.write => try self.newRunCommandSingle(cmd, .write),
|
||||
.embed => try self.newRunCommandSingle(cmd, .embed),
|
||||
|
||||
else => {
|
||||
std.debug.warn("TODO support {}\n", .{@tagName(cmd.tag)});
|
||||
|
|
Loading…
Reference in a new issue