diff options
author | Torbjörn Andersson | 2004-10-19 17:12:53 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-10-19 17:12:53 +0000 |
commit | 82b6902b5661b6b9832d39ae33627bc964cccf34 (patch) | |
tree | 111ab2099a766c2a81f870adb9f8265306edd56e /saga/sound.h | |
parent | d37a55ef19cfe85a67547c0255bd37938d96d8f8 (diff) | |
download | scummvm-rg350-82b6902b5661b6b9832d39ae33627bc964cccf34.tar.gz scummvm-rg350-82b6902b5661b6b9832d39ae33627bc964cccf34.tar.bz2 scummvm-rg350-82b6902b5661b6b9832d39ae33627bc964cccf34.zip |
Initial, and slightly buggy, support for sound effects.
svn-id: r15614
Diffstat (limited to 'saga/sound.h')
-rw-r--r-- | saga/sound.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/saga/sound.h b/saga/sound.h index dfb7b0835e..bccb872735 100644 --- a/saga/sound.h +++ b/saga/sound.h @@ -48,32 +48,28 @@ public: Sound(SagaEngine *vm, SoundMixer *mixer, int enabled); ~Sound(); - int play(int sound_rn, int channel); - int pause(int channel); - int resume(int channel); - int stop(int channel); + int playSound(R_SOUNDBUFFER *buf, int volume); + int pauseSound(); + int resumeSound(); + int stopSound(); - int playVoice(R_SOUNDBUFFER *); + int playVoice(R_SOUNDBUFFER *buf); int pauseVoice(); int resumeVoice(); int stopVoice(); private: + int playSoundBuffer(PlayingSoundHandle *handle, R_SOUNDBUFFER *buf, int volume, bool loop); + int _soundInitialized; int _enabled; - R_GAME_SOUNDINFO _snd_info; - - R_RSCFILE_CONTEXT *_soundContext; - R_RSCFILE_CONTEXT *_voiceContext; - SagaEngine *_vm; SoundMixer *_mixer; PlayingSoundHandle _effectHandle; PlayingSoundHandle _voiceHandle; - PlayingSoundHandle _musictHandle; }; |