diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-18 15:58:13 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-09-18 15:58:13 +0700 |
| commit | ceac1c57eac2cff4e60f93d63d1082c05f2ce163 (patch) | |
| tree | 6cc386c74916955f423337997b78d2791e8bab06 /examples | |
| parent | cfb42e206ff4b9f7dca9d0796b21792629eab902 (diff) | |
| download | zeal-ceac1c57eac2cff4e60f93d63d1082c05f2ce163.tar.gz | |
Remove Context reference from higher-level structs
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/hrtf.zig | 4 | ||||
| -rw-r--r-- | examples/play.zig | 4 |
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", .{}); |
