mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Sounds: Don't pause new sounds when paused
This commit is contained in:
parent
4ee32c5441
commit
b2aa5d9261
@ -184,8 +184,7 @@ std::shared_ptr<PlayingSound> OpenALSoundManager::createPlayingSound(
|
|||||||
volume, pitch, start_time, pos_vel_opt);
|
volume, pitch, start_time, pos_vel_opt);
|
||||||
|
|
||||||
sound->play();
|
sound->play();
|
||||||
if (m_is_paused)
|
|
||||||
sound->pause();
|
|
||||||
warn_if_al_error("createPlayingSound");
|
warn_if_al_error("createPlayingSound");
|
||||||
return sound;
|
return sound;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user