Use comptime for fully declarative LV2 and Custom commands #14
1 changed files with 2 additions and 2 deletions
|
@ -59,13 +59,13 @@ pub const NewCommandType = enum {
|
||||||
|
|
||||||
fn LV2Command(
|
fn LV2Command(
|
||||||
comptime tag: NewCommand.Tag,
|
comptime tag: NewCommand.Tag,
|
||||||
comptime lv2_url: []const u8,
|
comptime plugin_url: []const u8,
|
||||||
comptime LV2Parameters: type,
|
comptime LV2Parameters: type,
|
||||||
) type {
|
) type {
|
||||||
return struct {
|
return struct {
|
||||||
pub const base_tag = tag;
|
pub const base_tag = tag;
|
||||||
pub const command_type = NewCommandType.lv2_command;
|
pub const command_type = NewCommandType.lv2_command;
|
||||||
pub const lv2_url = lv2_url;
|
pub const lv2_url = plugin_url;
|
||||||
|
|
||||||
base: NewCommand,
|
base: NewCommand,
|
||||||
split: usize,
|
split: usize,
|
||||||
|
|
Loading…
Reference in a new issue