diff options
author | Max Horn | 2005-03-31 21:39:31 +0000 |
---|---|---|
committer | Max Horn | 2005-03-31 21:39:31 +0000 |
commit | ac247c9b94ec49dac4a5febf94bab2c76e7ed114 (patch) | |
tree | 558387ff7108430cbb476381c499e4185bb877a6 /scumm/imuse_digi | |
parent | 59331fe5352420a93aaa3ddb7066993cf484f7d8 (diff) | |
download | scummvm-rg350-ac247c9b94ec49dac4a5febf94bab2c76e7ed114.tar.gz scummvm-rg350-ac247c9b94ec49dac4a5febf94bab2c76e7ed114.tar.bz2 scummvm-rg350-ac247c9b94ec49dac4a5febf94bab2c76e7ed114.zip |
Started to move some resource related code into a new class ResourceManager (hypothetic goal for the future: use ResourceManager in ScummEx)
svn-id: r17311
Diffstat (limited to 'scumm/imuse_digi')
-rw-r--r-- | scumm/imuse_digi/dimuse_sndmgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/imuse_digi/dimuse_sndmgr.cpp b/scumm/imuse_digi/dimuse_sndmgr.cpp index d38caa8afb..924d0e2193 100644 --- a/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -342,7 +342,7 @@ ImuseDigiSndMgr::soundStruct *ImuseDigiSndMgr::openSound(int32 soundId, const ch assert(soundName[0] == 0); // Paranoia check _vm->ensureResourceLoaded(rtSound, soundId); - _vm->lock(rtSound, soundId); + _vm->res.lock(rtSound, soundId); ptr = _vm->getResourceAddress(rtSound, soundId); if (ptr == NULL) { closeSound(sound); @@ -413,7 +413,7 @@ void ImuseDigiSndMgr::closeSound(soundStruct *soundHandle) { found = true; } if (!found) - _vm->unlock(rtSound, soundHandle->soundId); + _vm->res.unlock(rtSound, soundHandle->soundId); } if (soundHandle->compressedStream) |