Skip to content

Commit

Permalink
PINK: added restart method to SequenceAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
voltya authored and sev- committed Jun 28, 2018
1 parent 896511c commit e55839f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions engines/pink/objects/sequences/sequence.cpp
Expand Up @@ -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
3 changes: 2 additions & 1 deletion engines/pink/objects/sequences/sequence.h
Expand Up @@ -48,7 +48,7 @@ class Sequence : public NamedObject {
virtual void end();

virtual void update();
void restart();
virtual void restart();
void skipToLastSubSequence();
void skipItemsTo(int index);

Expand All @@ -69,6 +69,7 @@ class SequenceAudio : public Sequence {
virtual void init(int unk);
virtual void end();
virtual void update();
virtual void restart();

private:
Common::String _soundName;
Expand Down

0 comments on commit e55839f

Please sign in to comment.