From abd12dd1b63d9e680bdc157fd5aa1fdb579e111e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 28 Jan 2005 22:05:51 +0000 Subject: Use class Mutex instead of MutexRef svn-id: r16679 --- scumm/sound.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scumm/sound.cpp') diff --git a/scumm/sound.cpp b/scumm/sound.cpp index dc0b2cad65..de2a9a5080 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -29,7 +29,6 @@ #include "scumm/sound.h" #include "common/config-manager.h" -#include "common/system.h" #include "common/timer.h" #include "common/util.h" @@ -2249,7 +2248,7 @@ int ScummEngine::readSoundResourceSmallHeader(int type, int idx) { template class AppendableMemoryStream : public AppendableAudioStream { protected: - OSystem::MutexRef _mutex; + Common::Mutex _mutex; byte *_bufferStart; byte *_bufferEnd; @@ -2287,14 +2286,11 @@ AppendableMemoryStream::AppendableMemoryStrea _bufferStart = (byte *)malloc(bufferSize); _pos = _end = _bufferStart; _bufferEnd = _bufferStart + bufferSize; - - _mutex = g_system->createMutex(); } template AppendableMemoryStream::~AppendableMemoryStream() { free(_bufferStart); - g_system->deleteMutex(_mutex); } template -- cgit v1.2.3