summary refs log tree commit diff
path: root/src/al.zig
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2025-03-11 16:20:35 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2025-03-11 16:20:35 +0900
commit7580c25a081e39732afaaa7a630d7f58005d5ab1 (patch)
treeecfb353f669af3d5df23bc099e514a7460ca4b73 /src/al.zig
parenteb65c5633e1bfae26ae95c6183cc74c2b5937943 (diff)
downloadzeal-0.1.0.tar.gz
Port to Zig 0.14 0.1.0
Diffstat (limited to 'src/al.zig')
-rw-r--r--src/al.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/al.zig b/src/al.zig
index 1eea14e..1fa11df 100644
--- a/src/al.zig
+++ b/src/al.zig
@@ -1,5 +1,5 @@
 // OpenAL wrapper
-// Copyright (C) 2021-2023  Nguyễn Gia Phong
+// Copyright (C) 2021-2023, 2025  Nguyễn Gia Phong
 //
 // This file is part of zeal.
 //
@@ -197,7 +197,7 @@ pub const source = struct {
             f32 => c.alSourcef(reference, param, value),
             i32 => c.alSourcei(reference, param, value),
             else => switch (@typeInfo(T)) {
-                .Enum => c.alSourcei(reference, param, @intFromEnum(value)),
+                .@"enum" => c.alSourcei(reference, param, @intFromEnum(value)),
                 else => switch (Child(T)) {
                     f32 => c.alSourcefv(reference, param, value[0..]),
                     i32 => c.alSourceiv(reference, param, value[0..]),
@@ -224,7 +224,7 @@ pub const source = struct {
             f32 => c.alGetSourcef(reference, param, &value),
             i32 => c.alGetSourcei(reference, param, &value),
             else => switch (@typeInfo(T)) {
-                .Enum => {
+                .@"enum" => {
                     var raw: i32 = undefined;
                     c.alGetSourcei(reference, param, &raw);
                     value = @enumFromInt(raw);