aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-05-23 21:28:32 +0000
committerPaweł Kołodziejski2004-05-23 21:28:32 +0000
commit916dec37acda1328ca7120c7305790eeb5526012 (patch)
treefe4b65fb562477ac742d011dfb5be7d327033d4c /scumm
parenta6fd5a3fa9f472e4944355dae6b95e750a461b11 (diff)
downloadscummvm-rg350-916dec37acda1328ca7120c7305790eeb5526012.tar.gz
scummvm-rg350-916dec37acda1328ca7120c7305790eeb5526012.tar.bz2
scummvm-rg350-916dec37acda1328ca7120c7305790eeb5526012.zip
moved stacklock to allocSlot() from startSound(). there is no need lock track which is not yet used
svn-id: r13853
Diffstat (limited to 'scumm')
-rw-r--r--scumm/imuse_digi/dimuse_track.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/imuse_digi/dimuse_track.cpp b/scumm/imuse_digi/dimuse_track.cpp
index d77e928b04..705d6d3c21 100644
--- a/scumm/imuse_digi/dimuse_track.cpp
+++ b/scumm/imuse_digi/dimuse_track.cpp
@@ -33,6 +33,7 @@
namespace Scumm {
bool IMuseDigital::allocSlot(int priority) {
+ Common::StackLock lock(_mutex, "IMuseDigital::allocSlot()");
int l;
int lower_priority = 127;
bool found_free = false;
@@ -79,7 +80,6 @@ bool IMuseDigital::allocSlot(int priority) {
}
void IMuseDigital::startSound(int soundId, const char *soundName, int soundType, int volGroupId, AudioStream *input, int hookId, int volume, int priority) {
- Common::StackLock lock(_mutex, "IMuseDigital::startSound()");
debug(5, "IMuseDigital::startSound(%d)", soundId);
int l;