Skip to content
Permalink
Browse files
Make sounds stop playing when entering game or mainmenu
  • Loading branch information
nOOb3167 authored and SmallJoker committed Mar 24, 2018
1 parent 4fd9715 commit 43f98eb47cabd3b8a2f5d2f9e7ae3bb6cf52fd6c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -343,7 +343,7 @@ class OpenALSoundManager: public ISoundManager
std::unordered_set<int> source_del_list;

for (const auto &sp : m_sounds_playing)
source_del_list.insert(sp.second->source_id);
source_del_list.insert(sp.first);

for (const auto &id : source_del_list)
deleteSound(id);

0 comments on commit 43f98eb

Please sign in to comment.