diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-02-15 23:38:31 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-02-15 23:44:42 +0900 |
| commit | d51c48a2525ac8a5658f019ce79488c36709e5bc (patch) | |
| tree | c57f0c738f7c8723ab44a2bf24990040ebc3ae18 /src | |
| parent | 3dd7e79ff5608fdaeb53abce3acb006036dc0eb9 (diff) | |
| download | zeal-d51c48a2525ac8a5658f019ce79488c36709e5bc.tar.gz | |
Port to Zig 0.10
Diffstat (limited to 'src')
| -rw-r--r-- | src/cimport.zig | 2 | ||||
| -rw-r--r-- | src/zeal.zig | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cimport.zig b/src/cimport.zig index dc19cc9..00a40c6 100644 --- a/src/cimport.zig +++ b/src/cimport.zig @@ -1,4 +1,4 @@ -usingnamespace @cImport({ +pub usingnamespace @cImport({ @cInclude("AL/al.h"); @cInclude("AL/alc.h"); @cInclude("AL/alext.h"); diff --git a/src/zeal.zig b/src/zeal.zig index 416c9d2..7103f59 100644 --- a/src/zeal.zig +++ b/src/zeal.zig @@ -1,5 +1,5 @@ // Zig easy audio library -// Copyright (C) 2021-2022 Nguyễn Gia Phong +// Copyright (C) 2021-2023 Nguyễn Gia Phong // // This file is part of zeal. // @@ -198,7 +198,7 @@ const expectEqual = std.testing.expectEqual; test "Context" { const device = try Device.init(null); defer device.deinit() catch unreachable; - const context = try Context.init(device, &.{ alc.HRTF, alc.TRUE }); + const context = try Context.init(device, &.{ alc.HRTF, alc.TRUE, 0 }); defer context.deinit() catch unreachable; try expectEqual(Context.getCurrent(), null); @@ -214,7 +214,7 @@ test "Context" { } test "listener" { - const context = try Context.init(try Device.init(null), &.{}); + const context = try Context.init(try Device.init(null), &.{ 0 }); defer context.device.deinit() catch unreachable; defer context.deinit() catch unreachable; |
