diff options
author | Gregory Montoir | 2003-12-29 13:18:24 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-12-29 13:18:24 +0000 |
commit | 14cfaf88520e45205689d35ce14aaa40d2a4368a (patch) | |
tree | c4fd27b609c0686c329c8ce51031257b35ebf532 /queen/sound.cpp | |
parent | 7e388f2237a9ad22214374bac3ffbb2a9d14f21a (diff) | |
download | scummvm-rg350-14cfaf88520e45205689d35ce14aaa40d2a4368a.tar.gz scummvm-rg350-14cfaf88520e45205689d35ce14aaa40d2a4368a.tar.bz2 scummvm-rg350-14cfaf88520e45205689d35ce14aaa40d2a4368a.zip |
- hack to read patched .dog files (french & italian versions) from game data path instead of data file
- cleanup Resource a bit (add an accessor for ResourceEntry in order to avoid multiple calls to resourceIndex)
svn-id: r12006
Diffstat (limited to 'queen/sound.cpp')
-rw-r--r-- | queen/sound.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/queen/sound.cpp b/queen/sound.cpp index ceeb5cc9e7..67edeafa14 100644 --- a/queen/sound.cpp +++ b/queen/sound.cpp @@ -147,14 +147,14 @@ void SBSound::playSound(byte *sound, uint32 size) { void SBSound::sfxPlay(const char *name) { waitSfxFinished(); - if (_vm->resource()->exists(name)) + if (_vm->resource()->fileExists(name)) playSound(_vm->resource()->loadFileMalloc(name, SB_HEADER_SIZE), _vm->resource()->fileSize(name) - SB_HEADER_SIZE); } #ifdef USE_MAD void MP3Sound::sfxPlay(const char *name) { waitSfxFinished(); - if (_vm->resource()->exists(name)) + if (_vm->resource()->fileExists(name)) _mixer->playMP3(&_sfxHandle, _vm->resource()->giveCompressedSound(name), _vm->resource()->fileSize(name)); } #endif @@ -162,7 +162,7 @@ void MP3Sound::sfxPlay(const char *name) { #ifdef USE_VORBIS void OGGSound::sfxPlay(const char *name) { waitSfxFinished(); - if (_vm->resource()->exists(name)) + if (_vm->resource()->fileExists(name)) _mixer->playVorbis(&_sfxHandle, _vm->resource()->giveCompressedSound(name), _vm->resource()->fileSize(name)); } #endif |