浏览代码

Implement configurable object sounds: ambient, visit and removal

* If there more than one sound for visit or removal random is played
* At moment only the first ambient sound will be used
Arseniy Shestakov 8 年之前
父节点
当前提交
d3b3389a37
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/CMusicHandler.cpp

+ 2 - 0
client/CMusicHandler.cpp

@@ -282,6 +282,7 @@ bool CSoundHandler::ambientCheckVisitable() const
 void CSoundHandler::ambientUpdateChannels(std::map<std::string, int> sounds)
 {
 	boost::mutex::scoped_lock guard(mutex);
+
 	std::vector<std::string> stoppedSounds;
 	for(auto & pair : ambientChannels)
 	{
@@ -312,6 +313,7 @@ void CSoundHandler::ambientUpdateChannels(std::map<std::string, int> sounds)
 void CSoundHandler::ambientStopAllChannels()
 {
 	boost::mutex::scoped_lock guard(mutex);
+
 	for(auto ch : ambientChannels)
 	{
 		ambientStopSound(ch.first);