diff options
author | Bastien Bouclet | 2017-02-04 14:34:04 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | f334e6e38ae4bc65d398fa174a8be892cb403063 (patch) | |
tree | 065d6fdc88fae04c54f32248a705039dbcf8d429 /engines/mohawk/riven_sound.h | |
parent | 14990dc91b868816914fd731586e60bb297caeea (diff) | |
download | scummvm-rg350-f334e6e38ae4bc65d398fa174a8be892cb403063.tar.gz scummvm-rg350-f334e6e38ae4bc65d398fa174a8be892cb403063.tar.bz2 scummvm-rg350-f334e6e38ae4bc65d398fa174a8be892cb403063.zip |
MOHAWK: Add sound effect related methods
Diffstat (limited to 'engines/mohawk/riven_sound.h')
-rw-r--r-- | engines/mohawk/riven_sound.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/mohawk/riven_sound.h b/engines/mohawk/riven_sound.h index d4e7872279..bd9237d9a6 100644 --- a/engines/mohawk/riven_sound.h +++ b/engines/mohawk/riven_sound.h @@ -73,13 +73,19 @@ public: * * @param id Sound ID in the stack * @param volume Playback volume, between 0 and 255 - * @param playOnDraw Start playing when the current card is drawn instead of immediatly + * @param playOnDraw Start playing when the current card is drawn instead of immediately */ void playSound(uint16 id, uint16 volume = 255, bool playOnDraw = false); + /** Play an effect sound by its resource name */ + void playSound(const Common::String &name, uint16 volume = 255, bool playOnDraw = false); + /** Start playing the scheduled on-draw effect sound, if any. Called by the GraphicsManager. */ void triggerDrawSound(); + /** Is an effect sound currently playing? */ + bool isEffectPlaying() const; + /** Stop playing the current effect sound, if any */ void stopSound(); |