From f56cf03b6aa386a47b29207720df2ae709e626c2 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 11 Oct 2019 21:40:00 +0800 Subject: [PATCH] Fix AL_INVALID_NAME when exit pause menu with fast music on --- src/audio/music_ogg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/music_ogg.cpp b/src/audio/music_ogg.cpp index 2d27a2cac..08bb59d75 100644 --- a/src/audio/music_ogg.cpp +++ b/src/audio/music_ogg.cpp @@ -235,14 +235,14 @@ bool MusicOggStream::pauseMusic() //----------------------------------------------------------------------------- bool MusicOggStream::resumeMusic() { - m_playing.store(true); - if (m_fileName == "") { // nothing is loaded return true; } + m_playing.store(true); + alSourcePlay(m_soundSource); m_pausedMusic= false; return true;