Fix AL_INVALID_NAME when exit pause menu with fast music on
This commit is contained in:
parent
a1e4bbc3c1
commit
f56cf03b6a
@ -235,14 +235,14 @@ bool MusicOggStream::pauseMusic()
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
bool MusicOggStream::resumeMusic()
|
bool MusicOggStream::resumeMusic()
|
||||||
{
|
{
|
||||||
m_playing.store(true);
|
|
||||||
|
|
||||||
if (m_fileName == "")
|
if (m_fileName == "")
|
||||||
{
|
{
|
||||||
// nothing is loaded
|
// nothing is loaded
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_playing.store(true);
|
||||||
|
|
||||||
alSourcePlay(m_soundSource);
|
alSourcePlay(m_soundSource);
|
||||||
m_pausedMusic= false;
|
m_pausedMusic= false;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user