summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/hrtf.zig4
-rw-r--r--examples/play.zig4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/hrtf.zig b/examples/hrtf.zig
index 9f92db5..d90adff 100644
--- a/examples/hrtf.zig
+++ b/examples/hrtf.zig
@@ -50,10 +50,10 @@ pub fn main() !void {
     defer audio.free();
 
     try context.makeCurrent();
-    const buffer = try Buffer.init(context, audio);
+    const buffer = try Buffer.init(audio);
     defer buffer.deinit() catch unreachable;
 
-    const source = try Source.init(context);
+    const source = try Source.init();
     defer source.deinit() catch unreachable;
     try source.setSpatialize(al.TRUE);
     try source.play(buffer);
diff --git a/examples/play.zig b/examples/play.zig
index 29c45b6..2ad1db9 100644
--- a/examples/play.zig
+++ b/examples/play.zig
@@ -44,10 +44,10 @@ pub fn main() !void {
     defer audio.free();
 
     try context.makeCurrent();
-    const buffer = try Buffer.init(context, audio);
+    const buffer = try Buffer.init(audio);
     defer buffer.deinit() catch unreachable;
 
-    const source = try Source.init(context);
+    const source = try Source.init();
     defer source.deinit() catch unreachable;
     try source.play(buffer);
     defer print("\n", .{});