Use comptime for fully declarative LV2 and Custom commands #14

Merged
luna merged 69 commits from declarative-commands into master 2020-06-02 21:37:47 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit 1fac8c7312 - Show all commits

View File

@ -120,9 +120,8 @@ pub const Write = struct {
allocator: *std.mem.Allocator,
params: *plugins.ParamMap,
) Write {
const data = params.get("data").?;
return Write{
.data = data.value,
.data = params.get("data").?.value,
};
}
@ -143,7 +142,7 @@ pub const Embed = struct {
pub fn init(allocator: *std.mem.Allocator, params: *plugins.ParmaMap) @This() {
return Embed{
.allocator = allocator,
.filepath = params.get("path").?,
.filepath = params.get("path").?.value,
};
}