diff options
author | lukaslw | 2014-07-26 05:33:33 +0200 |
---|---|---|
committer | lukaslw | 2014-07-26 05:33:33 +0200 |
commit | 97d10f94ec5f026015b9d6e06494d995d8664cc3 (patch) | |
tree | 3c0f4c223b41df828c58e982f54a0e2a82a2412f /engines/prince/prince.h | |
parent | 687a16874775fc54d96991b56e8b019d1eeb9413 (diff) | |
download | scummvm-rg350-97d10f94ec5f026015b9d6e06494d995d8664cc3.tar.gz scummvm-rg350-97d10f94ec5f026015b9d6e06494d995d8664cc3.tar.bz2 scummvm-rg350-97d10f94ec5f026015b9d6e06494d995d8664cc3.zip |
PRINCE: Sounds and voices - fix and update
Diffstat (limited to 'engines/prince/prince.h')
-rw-r--r-- | engines/prince/prince.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/prince/prince.h b/engines/prince/prince.h index ada6ddf067..3fd03c66d4 100644 --- a/engines/prince/prince.h +++ b/engines/prince/prince.h @@ -275,6 +275,9 @@ public: void playSample(uint16 sampleId, uint16 loopType); void stopSample(uint16 sampleId); + void stopAllSamples(); + void freeSample(uint16 sampleId); + void freeAllSamples(); void setVoice(uint16 slot, uint32 sampleSlot, uint16 flag); @@ -572,9 +575,9 @@ private: Font *_font; MusicPlayer *_midiPlayer; - static const uint32 MAX_SAMPLES = 60; - Common::SeekableReadStream *_voiceStream[MAX_SAMPLES]; - Audio::SoundHandle _soundHandle[MAX_SAMPLES]; + static const uint32 kMaxSamples = 60; + Audio::RewindableAudioStream *_audioStream[kMaxSamples]; + Audio::SoundHandle _soundHandle[kMaxSamples]; Common::Array<PScr *> _pscrList; Common::Array<DrawNode> _drawNodeList; |