diff options
Diffstat (limited to 'engines/access/access.cpp')
-rw-r--r-- | engines/access/access.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp index a3cadc1025..f04a5dec88 100644 --- a/engines/access/access.cpp +++ b/engines/access/access.cpp @@ -245,8 +245,9 @@ void AccessEngine::speakText(ASurface *s, const Common::String &msg) { _events->waitKeyMouse(); } else { for (;;) { - _sound->_soundTable[0] = _sound->loadSound(_narateFile + 99, _sndSubFile); - _sound->_soundPriority[0] = 1; + _sound->freeSounds(); + Resource *sound = _sound->loadSound(_narateFile + 99, _sndSubFile); + _sound->_soundTable.push_back(SoundEntry(sound, 1)); _sound->playSound(0); _scripts->cmdFreeSound(); @@ -287,8 +288,9 @@ void AccessEngine::speakText(ASurface *s, const Common::String &msg) { } for (;;) { - _sound->_soundTable[0] = _sound->loadSound(_narateFile + 99, _sndSubFile); - _sound->_soundPriority[0] = 1; + _sound->freeSounds(); + Resource *res = _sound->loadSound(_narateFile + 99, _sndSubFile); + _sound->_soundTable.push_back(SoundEntry(res, 1)); _sound->playSound(0); _scripts->cmdFreeSound(); |