diff options
author | Einar Johan Trøan Sømåen | 2012-07-17 18:42:30 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-17 18:42:30 +0200 |
commit | e8ad0f3b234c6d06576e802b478c59bad00898c0 (patch) | |
tree | f2a2f6f2384ff8f73df1c3843a36c3d50b726414 /engines/wintermute/Base/BFrame.cpp | |
parent | 67638343817f98b02de2beccb67637b2093a6b7c (diff) | |
download | scummvm-rg350-e8ad0f3b234c6d06576e802b478c59bad00898c0.tar.gz scummvm-rg350-e8ad0f3b234c6d06576e802b478c59bad00898c0.tar.bz2 scummvm-rg350-e8ad0f3b234c6d06576e802b478c59bad00898c0.zip |
WINTERMUTE: Revamp the sound-system, adding WAV-support and following the ScummVM-volume settings.
Diffstat (limited to 'engines/wintermute/Base/BFrame.cpp')
-rw-r--r-- | engines/wintermute/Base/BFrame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/Base/BFrame.cpp b/engines/wintermute/Base/BFrame.cpp index a0d7d5a1e0..b57d2e41f3 100644 --- a/engines/wintermute/Base/BFrame.cpp +++ b/engines/wintermute/Base/BFrame.cpp @@ -251,7 +251,7 @@ ERRORCODE CBFrame::loadBuffer(byte *buffer, int lifeTime, bool keepLoaded) { _sound = NULL;
}
_sound = new CBSound(Game);
- if (!_sound || DID_FAIL(_sound->setSound(params, SOUND_SFX, false))) {
+ if (!_sound || DID_FAIL(_sound->setSound(params, Audio::Mixer::kSFXSoundType, false))) {
if (Game->_soundMgr->_soundAvailable) Game->LOG(0, "Error loading sound '%s'.", params);
delete _sound;
_sound = NULL;
@@ -423,7 +423,7 @@ ERRORCODE CBFrame::scCallMethod(CScScript *script, CScStack *stack, CScStack *th if (!val->isNULL()) {
_sound = new CBSound(Game);
- if (!_sound || DID_FAIL(_sound->setSound(val->getString(), SOUND_SFX, false))) {
+ if (!_sound || DID_FAIL(_sound->setSound(val->getString(), Audio::Mixer::kSFXSoundType, false))) {
stack->pushBool(false);
delete _sound;
_sound = NULL;
|