replace f64 to f32 on some commands

This commit is contained in:
Luna 2020-05-30 22:29:13 -03:00
parent f20079b807
commit c3b83c3e4b
2 changed files with 4 additions and 5 deletions

View File

@ -136,15 +136,15 @@ pub const NewCommand = struct {
pub const base_tag = Tag.amp;
pub const base_type = Type.lv2_command;
base: NewCommand,
gain: f64
gain: f32
};
pub const RFlanger = struct {
pub const base_tag = Tag.rflanger;
pub const base_type = Type.lv2_command;
base: NewCommand,
delay_depth_avg: f64,
law_freq: f64,
delay_depth_avg: f32,
law_freq: f32,
};
};
@ -404,7 +404,7 @@ pub const Lang = struct {
try commands.append(cmd.base);
}
pub fn parse(self: *Lang, data: []const u8) ParseError!CommandList {
pub fn parse(self: *Lang, data: []const u8) !CommandList {
var splitted_it = std.mem.split(data, ";");
// try self.fillKeywords();
var cmds = CommandList.init(self.allocator);

View File

@ -778,7 +778,6 @@ pub const Runner = struct {
debug_flag: bool,
) !void {
for (cmds.items) |cmd| {
// TODO
// if (debug_flag) const_cmd.print();
try self.newRunCommand(cmd);
}