about summary refs log tree commit diff
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-07-05 17:24:00 +0200
committermakefunstuff <[email protected]>2024-07-05 17:24:00 +0200
commited3734032e704b26a4dea9304f72e9fac2350e52 (patch)
tree72d658ee572028c561050fc99bf0e3288f8cdfb2
parent3aa30a037b4e636d4e314f4f8b9a73fd6584ba56 (diff)
downloadtinkerbunk-ed3734032e704b26a4dea9304f72e9fac2350e52.tar.gz
playing but not everything
Diffstat (limited to '')
-rw-r--r--build.zig2
-rw-r--r--src/brr.zig2
-rw-r--r--src/main.zig2
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;
         }
     }