Skip to content

Commit

Permalink
Audio: don't deinit the player
Browse files Browse the repository at this point in the history
  • Loading branch information
alichraghi authored and slimsag committed May 13, 2024
1 parent 39bf303 commit 6e5c68c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Audio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ fn deinit(audio: *Mod) void {
defer audio.state().running_mu.unlock();
audio.state().running = false;

audio.state().player.deinit();
// TODO: make sure this doesn't hang forever
// audio.state().player.deinit();
audio.state().ctx.deinit();
if (audio.state().mixing_buffer) |*b| b.deinit(audio.state().allocator);
}
Expand Down

0 comments on commit 6e5c68c

Please sign in to comment.