summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/al.zig6
-rw-r--r--src/alc.zig4
-rw-r--r--src/zeal.zig4
3 files changed, 7 insertions, 7 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);
diff --git a/src/alc.zig b/src/alc.zig
index 3db5440..59a517e 100644
--- a/src/alc.zig
+++ b/src/alc.zig
@@ -1,5 +1,5 @@
 // Audio Library Context wrapper
-// Copyright (C) 2021-2023  Nguyễn Gia Phong
+// Copyright (C) 2021-2023, 2025  Nguyễn Gia Phong
 //
 // This file is part of zeal.
 //
@@ -267,7 +267,7 @@ fn getInfo(comptime T: type, device: ?*Device, attr: Enum) !T {
         i32 => return (try getInfo([1]i32, device, attr))[0],
         [:0]const u8 => span(c.alcGetString(device, @intFromEnum(attr))),
         else => array: {
-            assert(@typeInfo(T).Array.child == i32);
+            assert(@typeInfo(T).array.child == i32);
             var data: T = undefined;
             c.alcGetIntegerv(device, @intFromEnum(attr), data.len, &data);
             break :array data;
diff --git a/src/zeal.zig b/src/zeal.zig
index cf88b11..2f4db85 100644
--- a/src/zeal.zig
+++ b/src/zeal.zig
@@ -1,5 +1,5 @@
 // Zig easy audio library
-// Copyright (C) 2021-2023  Nguyễn Gia Phong
+// Copyright (C) 2021-2023, 2025  Nguyễn Gia Phong
 //
 // This file is part of zeal.
 //
@@ -86,7 +86,7 @@ pub const Context = struct {
     };
 
     pub fn init(device: Device, attributes: Attributes) alc.Error!Context {
-        const fields = @typeInfo(Attributes).Struct.fields;
+        const fields = @typeInfo(Attributes).@"struct".fields;
         var attr_list = [_]i32{ 0 } ** (fields.len * 2 + 1);
         var i: u8 = 0;
         inline for (fields) |f| if (@field(attributes, f.name)) |v| {