Make various Sound functionality SoundHandle instead of filename based.
- This fixes multiple sounds being played at once in Lands of Lore svn-id: r40848
This commit is contained in:
parent
c281214027
commit
344caa88fc
11 changed files with 72 additions and 102 deletions
|
@ -731,7 +731,7 @@ int KyraEngine_LoK::o1_displayWSASequentialFrames(EMCState *script) {
|
|||
voiceTime /= 100;
|
||||
|
||||
if (voiceSync) {
|
||||
uint32 voicePlayedTime = _sound->voicePlayedTime(_speechFile.c_str());
|
||||
uint32 voicePlayedTime = _sound->voicePlayedTime(_speechHandle);
|
||||
if (voicePlayedTime >= voiceTime)
|
||||
voiceTime = 0;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue