We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
stopAllAudio
1 parent 25e3f2b commit 37ae68cCopy full SHA for 37ae68c
2 files changed
build.zig.zon
@@ -1,6 +1,6 @@
1
.{
2
.name = .engine,
3
- .version = "0.15.2",
+ .version = "0.15.3",
4
.fingerprint = 0xe8a81a8d0aa558d5,
5
.minimum_zig_version = "0.16.0",
6
.dependencies = .{
src/engine.zig
@@ -1074,6 +1074,14 @@ pub fn Display(comptime T: type) type {
1074
);
1075
}
1076
1077
+ /// Load an image from a specific resource bundle.
1078
+ pub fn stopAllAudio(
1079
+ self: *Self,
1080
+ fade_out_ms: i64,
1081
+ ) (Error || Allocator.Error)!void {
1082
+ _ = mixer.MIX_StopAllTracks(self.mix, fade_out_ms);
1083
+ }
1084
+
1085
/// Load an image from a specific resource bundle.
1086
pub fn playBundleResource(
1087
self: *Self,
0 commit comments