diff options
author | Gregory Montoir | 2003-12-20 16:54:46 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-12-20 16:54:46 +0000 |
commit | 33ca6ecfa5d97db0e63092268eca4e94c0851fa3 (patch) | |
tree | 8204d6ccfbc599ef7e4f7a6a48f660372653669d /queen/sound.h | |
parent | 2c19e18fc85becb52fceab42c7bddf19a0913459 (diff) | |
download | scummvm-rg350-33ca6ecfa5d97db0e63092268eca4e94c0851fa3.tar.gz scummvm-rg350-33ca6ecfa5d97db0e63092268eca4e94c0851fa3.tar.bz2 scummvm-rg350-33ca6ecfa5d97db0e63092268eca4e94c0851fa3.zip |
some code to play the 'room background sfx' (equivalent to sfxplay(NULLstr))
svn-id: r11786
Diffstat (limited to 'queen/sound.h')
-rw-r--r-- | queen/sound.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/queen/sound.h b/queen/sound.h index 14ae5796af..6b39f752e1 100644 --- a/queen/sound.h +++ b/queen/sound.h @@ -53,9 +53,11 @@ class Sound { public: Sound(SoundMixer *mixer, QueenEngine *vm); virtual ~Sound(); - virtual void sfxPlay(const char *base) = 0; + virtual void sfxPlay(const char *name) = 0; static Sound *giveSound(SoundMixer *mixer, QueenEngine *vm, uint8 compression); void waitSfxFinished(); + void playSfx(uint16 sfx); + void playSfx(const char *base); void playSong(int16 songNum); bool sfxOn() { return _sfxToggle; } @@ -94,13 +96,13 @@ protected: class SilentSound : public Sound { public: SilentSound(SoundMixer *mixer, QueenEngine *vm) : Sound(mixer, vm) {}; - void sfxPlay(const char *base) { } + void sfxPlay(const char *name) { } }; class SBSound : public Sound { public: SBSound(SoundMixer *mixer, QueenEngine *vm) : Sound(mixer, vm) {}; - void sfxPlay(const char *base); + void sfxPlay(const char *name); protected: int playSound(byte *sound, uint32 size); }; @@ -109,7 +111,7 @@ protected: class MP3Sound : public Sound { public: MP3Sound(SoundMixer *mixer, QueenEngine *vm) : Sound(mixer, vm) {}; - void sfxPlay(const char *base); + void sfxPlay(const char *name); }; #endif @@ -117,7 +119,7 @@ public: class OGGSound : public Sound { public: OGGSound(SoundMixer *mixer, QueenEngine *vm) : Sound(mixer, vm) {}; - void sfxPlay(const char *base); + void sfxPlay(const char *name); }; #endif } // End of namespace Queen |