diff options
-rw-r--r-- | build.zig | 2 | ||||
-rw-r--r-- | src/brr.zig | 2 | ||||
-rw-r--r-- | src/main.zig | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/build.zig b/build.zig index def28a5..ba4d2a6 100644 --- a/build.zig +++ b/build.zig @@ -26,7 +26,7 @@ pub fn build(b: *std.Build) void { // TODO: link for mac later exe.linkSystemLibrary("SDL2"); exe.linkSystemLibrary("mpg123"); - exe.linkSystemLibrary("alsa"); + exe.linkSystemLibrary("asound"); exe.linkLibC(); // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default diff --git a/src/brr.zig b/src/brr.zig index 9c57076..bbacdd7 100644 --- a/src/brr.zig +++ b/src/brr.zig @@ -11,8 +11,6 @@ pub fn brr(allocator: std.mem.Allocator, file: [*:0]const u8) !void { return; }; - std.log.debug("file {s}", .{file}); - if (c.mpg123_open(handle, file) != c.MPG123_OK) { std.log.warn("Failed to open the file: {s}\n", .{file}); return; diff --git a/src/main.zig b/src/main.zig index 590f3b3..15df5c9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -51,7 +51,7 @@ pub fn main() !void { if (args.len == 3) { if (std.mem.eql(u8, args[1], "brr")) { - try brr.brr(std.heap.c_allocator, args[2]); + try brr.brr(allocator, args[2]); return; } } |