summary refs log tree commit diff
path: root/examples/hrtf.zig
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hrtf.zig')
-rw-r--r--examples/hrtf.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/hrtf.zig b/examples/hrtf.zig
index d90adff..2db3d78 100644
--- a/examples/hrtf.zig
+++ b/examples/hrtf.zig
@@ -56,7 +56,8 @@ pub fn main() !void {
     const source = try Source.init();
     defer source.deinit() catch unreachable;
     try source.setSpatialize(al.TRUE);
-    try source.play(buffer);
+    try source.bind(buffer);
+    try source.play();
     defer print("\n", .{});
     while (try source.isPlaying()) {
         const offset = try source.getSecOffset();