summary refs log tree commit diff
path: root/examples/play.zig
diff options
context:
space:
mode:
Diffstat (limited to 'examples/play.zig')
-rw-r--r--examples/play.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/play.zig b/examples/play.zig
index 7297181..0a031f9 100644
--- a/examples/play.zig
+++ b/examples/play.zig
@@ -19,6 +19,7 @@
 const std = @import("std");
 const allocator = std.heap.c_allocator;
 const args = std.process.args;
+const print = std.debug.print;
 const sleep = std.time.sleep;
 
 const zeal = @import("zeal");
@@ -50,9 +51,9 @@ pub fn main() !void {
     const source = try Source.init(context);
     defer source.deinit() catch unreachable;
     try source.play(buffer);
-    defer std.debug.print("\n", .{});
+    defer print("\n", .{});
     while (try source.isPlaying()) {
         sleep(10_000_000);
-        defer std.debug.print("\r{d:.1} s", .{ source.getSecOffset() });
+        defer print("\r{d:.1} s", .{ source.getSecOffset() });
     }
 }