aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-05-09 20:01:01 +0200
committerEinar Johan Trøan Sømåen2012-06-02 12:42:10 +0200
commitb6f512f392ea6b3819f322949315a0f3f3a616e3 (patch)
tree106d77046dc4d21772e59641b7ecbc84c2e70a47
parent23dd928733340261aabe3a006e3b17010909d537 (diff)
downloadscummvm-rg350-b6f512f392ea6b3819f322949315a0f3f3a616e3.tar.gz
scummvm-rg350-b6f512f392ea6b3819f322949315a0f3f3a616e3.tar.bz2
scummvm-rg350-b6f512f392ea6b3819f322949315a0f3f3a616e3.zip
WINTERMUTE: Some refactoring in BSoundMgr.
-rw-r--r--engines/wintermute/BGame.cpp48
-rw-r--r--engines/wintermute/BObject.cpp2
-rw-r--r--engines/wintermute/BSound.cpp8
-rw-r--r--engines/wintermute/BSoundMgr.cpp38
-rw-r--r--engines/wintermute/BSoundMgr.h30
-rw-r--r--engines/wintermute/PlatformSDL.cpp2
6 files changed, 64 insertions, 64 deletions
diff --git a/engines/wintermute/BGame.cpp b/engines/wintermute/BGame.cpp
index 8da4dce5b5..98a561530e 100644
--- a/engines/wintermute/BGame.cpp
+++ b/engines/wintermute/BGame.cpp
@@ -600,7 +600,7 @@ HRESULT CBGame::InitLoop() {
GetDebugMgr()->OnGameTick();
_renderer->InitLoop();
- _soundMgr->InitLoop();
+ _soundMgr->initLoop();
UpdateMusicCrossfade();
_surfaceStorage->InitLoop();
@@ -1516,7 +1516,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "SetGlobalSFXVolume") == 0) {
Stack->CorrectParams(1);
- Game->_soundMgr->SetVolumePercent(SOUND_SFX, (byte )Stack->Pop()->GetInt());
+ Game->_soundMgr->setVolumePercent(SOUND_SFX, (byte )Stack->Pop()->GetInt());
Stack->PushNULL();
return S_OK;
}
@@ -1526,7 +1526,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "SetGlobalSpeechVolume") == 0) {
Stack->CorrectParams(1);
- Game->_soundMgr->SetVolumePercent(SOUND_SPEECH, (byte )Stack->Pop()->GetInt());
+ Game->_soundMgr->setVolumePercent(SOUND_SPEECH, (byte )Stack->Pop()->GetInt());
Stack->PushNULL();
return S_OK;
}
@@ -1536,7 +1536,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "SetGlobalMusicVolume") == 0) {
Stack->CorrectParams(1);
- Game->_soundMgr->SetVolumePercent(SOUND_MUSIC, (byte )Stack->Pop()->GetInt());
+ Game->_soundMgr->setVolumePercent(SOUND_MUSIC, (byte )Stack->Pop()->GetInt());
Stack->PushNULL();
return S_OK;
}
@@ -1546,7 +1546,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "SetGlobalMasterVolume") == 0) {
Stack->CorrectParams(1);
- Game->_soundMgr->SetMasterVolumePercent((byte )Stack->Pop()->GetInt());
+ Game->_soundMgr->setMasterVolumePercent((byte )Stack->Pop()->GetInt());
Stack->PushNULL();
return S_OK;
}
@@ -1556,7 +1556,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "GetGlobalSFXVolume") == 0) {
Stack->CorrectParams(0);
- Stack->PushInt(_soundMgr->GetVolumePercent(SOUND_SFX));
+ Stack->PushInt(_soundMgr->getVolumePercent(SOUND_SFX));
return S_OK;
}
@@ -1565,7 +1565,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "GetGlobalSpeechVolume") == 0) {
Stack->CorrectParams(0);
- Stack->PushInt(_soundMgr->GetVolumePercent(SOUND_SPEECH));
+ Stack->PushInt(_soundMgr->getVolumePercent(SOUND_SPEECH));
return S_OK;
}
@@ -1574,7 +1574,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "GetGlobalMusicVolume") == 0) {
Stack->CorrectParams(0);
- Stack->PushInt(_soundMgr->GetVolumePercent(SOUND_MUSIC));
+ Stack->PushInt(_soundMgr->getVolumePercent(SOUND_MUSIC));
return S_OK;
}
@@ -1583,7 +1583,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "GetGlobalMasterVolume") == 0) {
Stack->CorrectParams(0);
- Stack->PushInt(_soundMgr->GetMasterVolumePercent());
+ Stack->PushInt(_soundMgr->getMasterVolumePercent());
return S_OK;
}
@@ -2219,7 +2219,7 @@ CScValue *CBGame::ScGetProperty(char *Name) {
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "SFXVolume") == 0) {
Game->LOG(0, "**Warning** The SFXVolume attribute is obsolete");
- _scValue->SetInt(_soundMgr->GetVolumePercent(SOUND_SFX));
+ _scValue->SetInt(_soundMgr->getVolumePercent(SOUND_SFX));
return _scValue;
}
@@ -2228,7 +2228,7 @@ CScValue *CBGame::ScGetProperty(char *Name) {
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "SpeechVolume") == 0) {
Game->LOG(0, "**Warning** The SpeechVolume attribute is obsolete");
- _scValue->SetInt(_soundMgr->GetVolumePercent(SOUND_SPEECH));
+ _scValue->SetInt(_soundMgr->getVolumePercent(SOUND_SPEECH));
return _scValue;
}
@@ -2237,7 +2237,7 @@ CScValue *CBGame::ScGetProperty(char *Name) {
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "MusicVolume") == 0) {
Game->LOG(0, "**Warning** The MusicVolume attribute is obsolete");
- _scValue->SetInt(_soundMgr->GetVolumePercent(SOUND_MUSIC));
+ _scValue->SetInt(_soundMgr->getVolumePercent(SOUND_MUSIC));
return _scValue;
}
@@ -2246,7 +2246,7 @@ CScValue *CBGame::ScGetProperty(char *Name) {
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "MasterVolume") == 0) {
Game->LOG(0, "**Warning** The MasterVolume attribute is obsolete");
- _scValue->SetInt(_soundMgr->GetMasterVolumePercent());
+ _scValue->SetInt(_soundMgr->getMasterVolumePercent());
return _scValue;
}
@@ -2543,7 +2543,7 @@ HRESULT CBGame::ScSetProperty(char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "SFXVolume") == 0) {
Game->LOG(0, "**Warning** The SFXVolume attribute is obsolete");
- Game->_soundMgr->SetVolumePercent(SOUND_SFX, (byte )Value->GetInt());
+ Game->_soundMgr->setVolumePercent(SOUND_SFX, (byte )Value->GetInt());
return S_OK;
}
@@ -2552,7 +2552,7 @@ HRESULT CBGame::ScSetProperty(char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "SpeechVolume") == 0) {
Game->LOG(0, "**Warning** The SpeechVolume attribute is obsolete");
- Game->_soundMgr->SetVolumePercent(SOUND_SPEECH, (byte )Value->GetInt());
+ Game->_soundMgr->setVolumePercent(SOUND_SPEECH, (byte )Value->GetInt());
return S_OK;
}
@@ -2561,7 +2561,7 @@ HRESULT CBGame::ScSetProperty(char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "MusicVolume") == 0) {
Game->LOG(0, "**Warning** The MusicVolume attribute is obsolete");
- Game->_soundMgr->SetVolumePercent(SOUND_MUSIC, (byte )Value->GetInt());
+ Game->_soundMgr->setVolumePercent(SOUND_MUSIC, (byte )Value->GetInt());
return S_OK;
}
@@ -2570,7 +2570,7 @@ HRESULT CBGame::ScSetProperty(char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "MasterVolume") == 0) {
Game->LOG(0, "**Warning** The MasterVolume attribute is obsolete");
- Game->_soundMgr->SetMasterVolumePercent((byte )Value->GetInt());
+ Game->_soundMgr->setMasterVolumePercent((byte )Value->GetInt());
return S_OK;
}
@@ -3667,7 +3667,7 @@ HRESULT CBGame::FocusWindow(CUIWindow *Window) {
HRESULT CBGame::Freeze(bool IncludingMusic) {
if (_freezeLevel == 0) {
_scEngine->PauseAll();
- _soundMgr->PauseAll(IncludingMusic);
+ _soundMgr->pauseAll(IncludingMusic);
_origState = _state;
_origInteractive = _interactive;
_interactive = true;
@@ -3688,7 +3688,7 @@ HRESULT CBGame::Unfreeze() {
_state = _origState;
_interactive = _origInteractive;
_scEngine->ResumeAll();
- _soundMgr->ResumeAll();
+ _soundMgr->resumeAll();
}
return S_OK;
@@ -4026,7 +4026,7 @@ HRESULT CBGame::DisplayIndicator() {
//////////////////////////////////////////////////////////////////////////
HRESULT CBGame::UpdateMusicCrossfade() {
- byte GlobMusicVol = _soundMgr->GetVolumePercent(SOUND_MUSIC);
+ byte GlobMusicVol = _soundMgr->getVolumePercent(SOUND_MUSIC);
if (!_musicCrossfadeRunning) return S_OK;
if (_state == GAME_FROZEN) return S_OK;
@@ -4154,8 +4154,8 @@ HRESULT CBGame::OnActivate(bool Activate, bool RefreshMouse) {
SetActiveObject(_renderer->GetObjectAt(p.x, p.y));
}
- if (Activate) _soundMgr->ResumeAll();
- else _soundMgr->PauseAll();
+ if (Activate) _soundMgr->resumeAll();
+ else _soundMgr->pauseAll();
return S_OK;
}
@@ -4390,7 +4390,7 @@ HRESULT CBGame::MiniUpdate() {
if (!_miniUpdateEnabled) return S_OK;
if (CBPlatform::GetTime() - _lastMiniUpdate > 200) {
- if (_soundMgr) _soundMgr->InitLoop();
+ if (_soundMgr) _soundMgr->initLoop();
_lastMiniUpdate = CBPlatform::GetTime();
}
return S_OK;
@@ -4446,7 +4446,7 @@ bool CBGame::IsDoubleClick(int buttonIndex) {
//////////////////////////////////////////////////////////////////////////
void CBGame::AutoSaveOnExit() {
- _soundMgr->SaveSettings();
+ _soundMgr->saveSettings();
_registry->SaveValues();
if (!_autoSaveOnExit) return;
diff --git a/engines/wintermute/BObject.cpp b/engines/wintermute/BObject.cpp
index 3665341550..beadaf1ec2 100644
--- a/engines/wintermute/BObject.cpp
+++ b/engines/wintermute/BObject.cpp
@@ -1076,7 +1076,7 @@ HRESULT CBObject::UpdateOneSound(CBSound *Sound) {
if (Sound) {
if (_autoSoundPanning)
- Ret = Sound->SetPan(Game->_soundMgr->PosToPan(_posX - Game->_offsetX, _posY - Game->_offsetY));
+ Ret = Sound->SetPan(Game->_soundMgr->posToPan(_posX - Game->_offsetX, _posY - Game->_offsetY));
Ret = Sound->ApplyFX(_sFXType, _sFXParam1, _sFXParam2, _sFXParam3, _sFXParam4);
}
diff --git a/engines/wintermute/BSound.cpp b/engines/wintermute/BSound.cpp
index 46f7c5ce45..e7c047a40f 100644
--- a/engines/wintermute/BSound.cpp
+++ b/engines/wintermute/BSound.cpp
@@ -56,7 +56,7 @@ CBSound::CBSound(CBGame *inGame): CBBase(inGame) {
//////////////////////////////////////////////////////////////////////////
CBSound::~CBSound() {
- if (_sound) Game->_soundMgr->RemoveSound(_sound);
+ if (_sound) Game->_soundMgr->removeSound(_sound);
_sound = NULL;
delete[] _soundFilename;
@@ -67,13 +67,13 @@ CBSound::~CBSound() {
//////////////////////////////////////////////////////////////////////////
HRESULT CBSound::SetSound(char *Filename, TSoundType Type, bool Streamed) {
if (_sound) {
- Game->_soundMgr->RemoveSound(_sound);
+ Game->_soundMgr->removeSound(_sound);
_sound = NULL;
}
delete[] _soundFilename;
_soundFilename = NULL;
- _sound = Game->_soundMgr->AddSound(Filename, Type, Streamed);
+ _sound = Game->_soundMgr->addSound(Filename, Type, Streamed);
if (_sound) {
_soundFilename = new char[strlen(Filename) + 1];
strcpy(_soundFilename, Filename);
@@ -88,7 +88,7 @@ HRESULT CBSound::SetSound(char *Filename, TSoundType Type, bool Streamed) {
//////////////////////////////////////////////////////////////////////////
HRESULT CBSound::SetSoundSimple() {
- _sound = Game->_soundMgr->AddSound(_soundFilename, _soundType, _soundStreamed);
+ _sound = Game->_soundMgr->addSound(_soundFilename, _soundType, _soundStreamed);
if (_sound) {
if (_soundPosition) _sound->SetPosition(_soundPosition);
_sound->SetLooping(_soundLooping);
diff --git a/engines/wintermute/BSoundMgr.cpp b/engines/wintermute/BSoundMgr.cpp
index 17fd3c64b0..a58878fd95 100644
--- a/engines/wintermute/BSoundMgr.cpp
+++ b/engines/wintermute/BSoundMgr.cpp
@@ -52,13 +52,13 @@ CBSoundMgr::CBSoundMgr(CBGame *inGame): CBBase(inGame) {
//////////////////////////////////////////////////////////////////////////
CBSoundMgr::~CBSoundMgr() {
- SaveSettings();
- Cleanup();
+ saveSettings();
+ cleanup();
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::Cleanup() {
+HRESULT CBSoundMgr::cleanup() {
for (int i = 0; i < _sounds.GetSize(); i++) delete _sounds[i];
_sounds.RemoveAll();
#if 0
@@ -68,7 +68,7 @@ HRESULT CBSoundMgr::Cleanup() {
}
//////////////////////////////////////////////////////////////////////////
-void CBSoundMgr::SaveSettings() {
+void CBSoundMgr::saveSettings() {
if (_soundAvailable) {
Game->_registry->WriteInt("Audio", "MasterVolume", _volumeMaster);
@@ -79,7 +79,7 @@ void CBSoundMgr::SaveSettings() {
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::Initialize() {
+HRESULT CBSoundMgr::initialize() {
_soundAvailable = false;
#if 0
@@ -107,14 +107,14 @@ HRESULT CBSoundMgr::Initialize() {
_volumeMusic = Game->_registry->ReadInt("Audio", "MusicVolume", 100);
_soundAvailable = true;
- SetMasterVolumePercent(_volumeMaster);
+ setMasterVolumePercent(_volumeMaster);
return S_OK;
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::InitLoop() {
+HRESULT CBSoundMgr::initLoop() {
if (!_soundAvailable) return S_OK;
#if 0
@@ -125,7 +125,7 @@ HRESULT CBSoundMgr::InitLoop() {
//////////////////////////////////////////////////////////////////////////
-CBSoundBuffer *CBSoundMgr::AddSound(const char *Filename, TSoundType Type, bool Streamed) {
+CBSoundBuffer *CBSoundMgr::addSound(const char *Filename, TSoundType Type, bool Streamed) {
if (!_soundAvailable) return NULL;
CBSoundBuffer *sound;
@@ -180,7 +180,7 @@ CBSoundBuffer *CBSoundMgr::AddSound(const char *Filename, TSoundType Type, bool
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::AddSound(CBSoundBuffer *Sound, TSoundType Type) {
+HRESULT CBSoundMgr::addSound(CBSoundBuffer *Sound, TSoundType Type) {
if (!Sound) return E_FAIL;
// set volume appropriately
@@ -203,7 +203,7 @@ HRESULT CBSoundMgr::AddSound(CBSoundBuffer *Sound, TSoundType Type) {
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::RemoveSound(CBSoundBuffer *Sound) {
+HRESULT CBSoundMgr::removeSound(CBSoundBuffer *Sound) {
for (int i = 0; i < _sounds.GetSize(); i++) {
if (_sounds[i] == Sound) {
@@ -218,7 +218,7 @@ HRESULT CBSoundMgr::RemoveSound(CBSoundBuffer *Sound) {
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::SetVolume(TSoundType Type, int Volume) {
+HRESULT CBSoundMgr::setVolume(TSoundType Type, int Volume) {
if (!_soundAvailable) return S_OK;
switch (Type) {
@@ -241,13 +241,13 @@ HRESULT CBSoundMgr::SetVolume(TSoundType Type, int Volume) {
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::SetVolumePercent(TSoundType Type, byte Percent) {
- return SetVolume(Type, Percent);
+HRESULT CBSoundMgr::setVolumePercent(TSoundType Type, byte Percent) {
+ return setVolume(Type, Percent);
}
//////////////////////////////////////////////////////////////////////////
-byte CBSoundMgr::GetVolumePercent(TSoundType Type) {
+byte CBSoundMgr::getVolumePercent(TSoundType Type) {
int Volume;
switch (Type) {
case SOUND_SFX:
@@ -266,7 +266,7 @@ byte CBSoundMgr::GetVolumePercent(TSoundType Type) {
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::SetMasterVolumePercent(byte Percent) {
+HRESULT CBSoundMgr::setMasterVolumePercent(byte Percent) {
_volumeMaster = Percent;
#if 0
BASS_SetConfig(BASS_CONFIG_GVOL_STREAM, (uint32)(10000.0f / 100.0f * (float)Percent));
@@ -276,7 +276,7 @@ HRESULT CBSoundMgr::SetMasterVolumePercent(byte Percent) {
//////////////////////////////////////////////////////////////////////////
-byte CBSoundMgr::GetMasterVolumePercent() {
+byte CBSoundMgr::getMasterVolumePercent() {
#if 0
uint32 val = BASS_GetConfig(BASS_CONFIG_GVOL_STREAM);
return (float)val / 10000.0f * 100.0f;
@@ -287,7 +287,7 @@ byte CBSoundMgr::GetMasterVolumePercent() {
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::PauseAll(bool IncludingMusic) {
+HRESULT CBSoundMgr::pauseAll(bool IncludingMusic) {
for (int i = 0; i < _sounds.GetSize(); i++) {
if (_sounds[i]->IsPlaying() && (_sounds[i]->_type != SOUND_MUSIC || IncludingMusic)) {
@@ -301,7 +301,7 @@ HRESULT CBSoundMgr::PauseAll(bool IncludingMusic) {
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSoundMgr::ResumeAll() {
+HRESULT CBSoundMgr::resumeAll() {
for (int i = 0; i < _sounds.GetSize(); i++) {
if (_sounds[i]->_freezePaused) {
@@ -315,7 +315,7 @@ HRESULT CBSoundMgr::ResumeAll() {
//////////////////////////////////////////////////////////////////////////
-float CBSoundMgr::PosToPan(int X, int Y) {
+float CBSoundMgr::posToPan(int X, int Y) {
float relPos = (float)X / ((float)Game->_renderer->_width);
float minPan = -0.7f;
diff --git a/engines/wintermute/BSoundMgr.h b/engines/wintermute/BSoundMgr.h
index de74f6c4df..aa03edf1de 100644
--- a/engines/wintermute/BSoundMgr.h
+++ b/engines/wintermute/BSoundMgr.h
@@ -38,31 +38,31 @@ namespace WinterMute {
class CBSoundMgr : public CBBase {
public:
- float PosToPan(int X, int Y);
- HRESULT ResumeAll();
- HRESULT PauseAll(bool IncludingMusic = true);
- HRESULT Cleanup();
+ float posToPan(int X, int Y);
+ HRESULT resumeAll();
+ HRESULT pauseAll(bool IncludingMusic = true);
+ HRESULT cleanup();
//DECLARE_PERSISTENT(CBSoundMgr, CBBase);
- byte GetMasterVolumePercent();
- HRESULT SetMasterVolumePercent(byte Percent);
- byte GetVolumePercent(TSoundType Type);
- HRESULT SetVolumePercent(TSoundType Type, byte Percent);
- HRESULT SetVolume(TSoundType Type, int Volume);
+ byte getMasterVolumePercent();
+ HRESULT setMasterVolumePercent(byte Percent);
+ byte getVolumePercent(TSoundType Type);
+ HRESULT setVolumePercent(TSoundType Type, byte Percent);
+ HRESULT setVolume(TSoundType Type, int Volume);
uint32 _volumeOriginal;
int _volumeMaster;
int _volumeMusic;
int _volumeSpeech;
int _volumeSFX;
- HRESULT RemoveSound(CBSoundBuffer *Sound);
- CBSoundBuffer *AddSound(const char *Filename, TSoundType Type = SOUND_SFX, bool Streamed = false);
- HRESULT AddSound(CBSoundBuffer *Sound, TSoundType Type = SOUND_SFX);
- HRESULT InitLoop();
- HRESULT Initialize();
+ HRESULT removeSound(CBSoundBuffer *Sound);
+ CBSoundBuffer *addSound(const char *Filename, TSoundType Type = SOUND_SFX, bool Streamed = false);
+ HRESULT addSound(CBSoundBuffer *Sound, TSoundType Type = SOUND_SFX);
+ HRESULT initLoop();
+ HRESULT initialize();
bool _soundAvailable;
CBSoundMgr(CBGame *inGame);
virtual ~CBSoundMgr();
CBArray<CBSoundBuffer *, CBSoundBuffer *> _sounds;
- void SaveSettings();
+ void saveSettings();
};
} // end of namespace WinterMute
diff --git a/engines/wintermute/PlatformSDL.cpp b/engines/wintermute/PlatformSDL.cpp
index b80efb3820..51e41f01bb 100644
--- a/engines/wintermute/PlatformSDL.cpp
+++ b/engines/wintermute/PlatformSDL.cpp
@@ -141,7 +141,7 @@ int CBPlatform::Initialize(CBGame *inGame, int argc, char *argv[]) {
#endif
// initialize sound manager (non-fatal if we fail)
- ret = Game->_soundMgr->Initialize();
+ ret = Game->_soundMgr->initialize();
if (FAILED(ret)) {
Game->LOG(ret, "Sound is NOT available.");
}