diff options
author | Sven Hesse | 2007-02-04 15:45:15 +0000 |
---|---|---|
committer | Sven Hesse | 2007-02-04 15:45:15 +0000 |
commit | f54a97a02cfcf7abf8fd06cbed25aa7bba7d41ee (patch) | |
tree | f2abe52c7d32b98943c1292d47465bdf92041f7d /engines/gob/sound.h | |
parent | 8f084baf66a2ce3b09103f6ea133cc7d6a3f9611 (diff) | |
download | scummvm-rg350-f54a97a02cfcf7abf8fd06cbed25aa7bba7d41ee.tar.gz scummvm-rg350-f54a97a02cfcf7abf8fd06cbed25aa7bba7d41ee.tar.bz2 scummvm-rg350-f54a97a02cfcf7abf8fd06cbed25aa7bba7d41ee.zip |
- Plugged some leaks and fixed some memory errors
- Fixed the cursor animation loops in Ween and Bargon
- Added Draw_Bargon + Inter_Bargon
- Implemented Bargon Attack's hardcoded intro parts
svn-id: r25387
Diffstat (limited to 'engines/gob/sound.h')
-rw-r--r-- | engines/gob/sound.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/gob/sound.h b/engines/gob/sound.h index acd003b0b9..773193af36 100644 --- a/engines/gob/sound.h +++ b/engines/gob/sound.h @@ -54,9 +54,10 @@ public: SoundDesc *loadSoundData(const char *path); void stopSound(int16 fadeLength); void playSample(SoundDesc *sndDesc, int16 repCount, int16 frequency, int16 fadeLength = 0); - void playComposition(int16 *composition, int16 freqVal); + void playComposition(int16 *composition, int16 freqVal, SoundDesc **sndDescs = 0, + int8 *sndTypes = 0, int8 sndCount = 60); void stopComposition(void); - void waitEndPlay(void); + void waitEndPlay(bool interruptible = false, bool stopComp = true); // This deletes sndDesc and stops playing the sample. // If freedata is set, it also delete[]s the sample data. @@ -95,9 +96,12 @@ protected: SquareWaveStream _speakerStream; Audio::SoundHandle _speakerHandle; - Audio::SoundHandle *_activeHandle; Audio::SoundHandle _compositionHandle; + + SoundDesc **_compositionSamples; + int8 *_compositionSampleTypes; + int8 _compositionSampleCount; int16 _composition[50]; int8 _compositionPos; |