aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/sequences
diff options
context:
space:
mode:
authorwhiterandrek2018-03-28 17:21:38 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commite55839ff20ac5bd51fffb151bbb98249c94d2e77 (patch)
tree873e21b958899cec38d46cf14e5aac139e5c2c23 /engines/pink/objects/sequences
parent896511c34ac1a5b0b41fcbd01e81272c219fb8bb (diff)
downloadscummvm-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.cpp5
-rw-r--r--engines/pink/objects/sequences/sequence.h3
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;