Skip to content

Commit

Permalink
fix(core): Stop updates when deinitializing the engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
na2axl committed Oct 31, 2024
1 parent 4fffde7 commit dae5656
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,9 @@ namespace SparkyStudios::Audio::Amplitude
// Process one last frame to update stopped channel states
AdvanceFrame(0);

// Pause the engine so no further updates are made
_state->paused = true;

// Release channels
EraseFinishedSounds(_state);

Expand Down

0 comments on commit dae5656

Please sign in to comment.