about summary refs log tree commit diff
path: root/examples
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-18 15:58:13 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-09-18 15:58:13 +0700
commitceac1c57eac2cff4e60f93d63d1082c05f2ce163 (patch)
tree6cc386c74916955f423337997b78d2791e8bab06 /examples
parentcfb42e206ff4b9f7dca9d0796b21792629eab902 (diff)
downloadzeal-ceac1c57eac2cff4e60f93d63d1082c05f2ce163.tar.gz
Remove Context reference from higher-level structs
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", .{});