diff options
Diffstat (limited to 'src/zeal.zig')
-rw-r--r-- | src/zeal.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zeal.zig b/src/zeal.zig index b3126ec..7dc82c5 100644 --- a/src/zeal.zig +++ b/src/zeal.zig @@ -99,12 +99,12 @@ pub const listener = struct { }; pub const Audio = struct { - allocator: *Allocator, + allocator: Allocator, data: al.Data, frequency: i32, /// Read audio from file. - pub fn read(allocator: *Allocator, path: [:0]const u8) sf.Error!Audio { + pub fn read(allocator: Allocator, path: [:0]const u8) sf.Error!Audio { const sound = try SndFile.open(path, sf.Mode.read); defer sound.close(); const data = try sound.readAll(allocator); |