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 2ad1db9..210972c 100644
--- a/examples/play.zig
+++ b/examples/play.zig
@@ -49,10 +49,11 @@ pub fn main() !void {
 
     const source = try Source.init();
     defer source.deinit() catch unreachable;
-    try source.play(buffer);
+    try source.bind(buffer);
+    try source.play();
     defer print("\n", .{});
     while (try source.isPlaying()) {
         sleep(10_000_000);
-        defer print("\r{d:.1} s", .{ source.getSecOffset() });
+        print("\r{d:.1} s", .{ source.getSecOffset() });
     }
 }