Skip to content

Commit

Permalink
Merge pull request godotengine#20 from JiepengTan/spx4.2.2
Browse files Browse the repository at this point in the history
Fix replay audio when call resume
  • Loading branch information
JiepengTan authored Nov 20, 2024
2 parents 6bceafc + 24dbbff commit d59f3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/extension/spx_audio_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ void SpxAudioMgr::play_music(GdString path) {
}

void SpxAudioMgr::pause_music() {
music->stop();
music->set_stream_paused(true);
}

void SpxAudioMgr::resume_music() {
music->play();
music->set_stream_paused(false);
}

GdFloat SpxAudioMgr::get_music_timer() {
Expand Down

0 comments on commit d59f3cc

Please sign in to comment.