about 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.zig8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/hrtf.zig b/examples/hrtf.zig
index 76e1257..99c1780 100644
--- a/examples/hrtf.zig
+++ b/examples/hrtf.zig
@@ -23,8 +23,6 @@ const print = std.debug.print;
 const sleep = std.time.sleep;
 
 const zeal = @import("zeal");
-const al = zeal.al;
-const alc = zeal.alc;
 const Device = zeal.Device;
 const Context = zeal.Context;
 const Audio = zeal.Audio;
@@ -35,8 +33,8 @@ pub fn main() !void {
     const device = try Device.init(null);
     defer device.deinit() catch unreachable;
 
-    const context = try Context.init(device, &.{ alc.HRTF, alc.TRUE, 0 });
-    if (try device.enabledHrtf())
+    const context = try Context.init(device, .{ .hrtf = .true });
+    if (try device.get(.hrtf))
         print("HRTF enabled!\n", .{})
     else
         print("HRTF not enabled!\n", .{});
@@ -54,7 +52,7 @@ pub fn main() !void {
 
     const source = try Source.init();
     defer source.deinit() catch unreachable;
-    try source.setSpatialize(al.TRUE);
+    try source.setSpatialize(true);
     try source.bind(buffer);
     try source.play();
     defer print("\n", .{});