From 335eb1bf0853dbdede70fc4366fd1ff166715198 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 24 May 2008 22:47:08 +0000 Subject: Committed my fix for bug #1497437 "KYRA1: Subtitles glitch during 'Speech of the Land'". svn-id: r32260 --- engines/kyra/sound.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'engines/kyra/sound.h') diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h index 595619c7e9..2427a6cdde 100644 --- a/engines/kyra/sound.h +++ b/engines/kyra/sound.h @@ -174,9 +174,9 @@ public: * * @param file file to be played * @param isSfx marks file as sfx instead of voice - * @return channel the voice file is played on + * @return playtime of the voice file (-1 marks unknown playtime) */ - virtual bool voicePlay(const char *file, bool isSfx = false); + virtual int32 voicePlay(const char *file, bool isSfx = false); /** * Checks if a voice is being played. @@ -185,6 +185,13 @@ public: */ bool voiceIsPlaying(const char *file = 0); + /** + * Checks how long a voice has been playing + * + * @return time in milliseconds + */ + uint32 voicePlayedTime(const char *file); + /** * Stops playback of the current voice. */ @@ -449,7 +456,7 @@ public: void haltTrack(); void beginFadeOut(); - bool voicePlay(const char *file, bool isSfx = false); + int32 voicePlay(const char *file, bool isSfx = false); void playSoundEffect(uint8) {} private: -- cgit v1.2.3