Skip to content

Commit 496da32

Browse files
committed
Sound.Flags fixes
Closes #2
1 parent bbaf29a commit 496da32

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/zaudio.zig

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,15 +2313,22 @@ pub const Sound = opaque {
23132313
}
23142314
extern fn ma_sound_get_length_in_seconds(sound: *const Sound, length: *f32) Result;
23152315

2316-
pub const Flags = packed struct(u32) {
2316+
pub const Flags = packed struct(c_int) {
2317+
// Resource manager flags
23172318
stream: bool = false,
23182319
decode: bool = false,
23192320
async_load: bool = false,
23202321
wait_init: bool = false,
2322+
unknown_length: bool = false,
2323+
2324+
_padding0: u7 = 0,
2325+
2326+
// ma_sound specific flags
23212327
no_default_attachment: bool = false,
23222328
no_pitch: bool = false,
23232329
no_spatialization: bool = false,
2324-
_padding: u25 = 0,
2330+
2331+
_padding1: u17 = 0,
23252332
};
23262333

23272334
pub const Config = extern struct {

0 commit comments

Comments
 (0)