diff options
author | whiterandrek | 2018-03-28 17:21:38 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | e55839ff20ac5bd51fffb151bbb98249c94d2e77 (patch) | |
tree | 873e21b958899cec38d46cf14e5aac139e5c2c23 /engines/pink/objects/sequences | |
parent | 896511c34ac1a5b0b41fcbd01e81272c219fb8bb (diff) | |
download | scummvm-rg350-e55839ff20ac5bd51fffb151bbb98249c94d2e77.tar.gz scummvm-rg350-e55839ff20ac5bd51fffb151bbb98249c94d2e77.tar.bz2 scummvm-rg350-e55839ff20ac5bd51fffb151bbb98249c94d2e77.zip |
PINK: added restart method to SequenceAudio
Diffstat (limited to 'engines/pink/objects/sequences')
-rw-r--r-- | engines/pink/objects/sequences/sequence.cpp | 5 | ||||
-rw-r--r-- | engines/pink/objects/sequences/sequence.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/pink/objects/sequences/sequence.cpp b/engines/pink/objects/sequences/sequence.cpp index c2a0f731ff..f9aafa49de 100644 --- a/engines/pink/objects/sequences/sequence.cpp +++ b/engines/pink/objects/sequences/sequence.cpp @@ -165,4 +165,9 @@ void SequenceAudio::init(int unk) { Sequence::init(unk); } +void SequenceAudio::restart() { + _sound->play(Audio::Mixer::SoundType::kMusicSoundType, 100, 0); + Sequence::restart(); +} + } // End of namespace Pink
\ No newline at end of file diff --git a/engines/pink/objects/sequences/sequence.h b/engines/pink/objects/sequences/sequence.h index 08d0271aa3..8a9264aecd 100644 --- a/engines/pink/objects/sequences/sequence.h +++ b/engines/pink/objects/sequences/sequence.h @@ -48,7 +48,7 @@ public: virtual void end(); virtual void update(); - void restart(); + virtual void restart(); void skipToLastSubSequence(); void skipItemsTo(int index); @@ -69,6 +69,7 @@ public: virtual void init(int unk); virtual void end(); virtual void update(); + virtual void restart(); private: Common::String _soundName; |