mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
MADS: Fix call to play speech in generateMessage
This commit is contained in:
parent
d750c85fc8
commit
8f15e3d6ef
@ -452,8 +452,10 @@ void GameConversations::generateMessage(Common::Array<int> &messageList, Common:
|
||||
_dialog->show();
|
||||
|
||||
// Play the speech if one was provided
|
||||
if (voiceList.size() > 0)
|
||||
_vm->_sound->playSpeech(_runningConv->_data._speechFile, voiceList[0]);
|
||||
if (voiceList.size() > 0) {
|
||||
_vm->_audio->setSoundGroup(_runningConv->_data._speechFile);
|
||||
_vm->_audio->playSound(voiceList[0] - 1);
|
||||
}
|
||||
}
|
||||
|
||||
bool GameConversations::nextNode() {
|
||||
|
@ -177,8 +177,4 @@ void SoundManager::noise() {
|
||||
_driver->noise();
|
||||
}
|
||||
|
||||
void SoundManager::playSpeech(const Common::String &speechFile, int speechNum) {
|
||||
warning("TODO: playSpeech");
|
||||
}
|
||||
|
||||
} // End of namespace MADS
|
||||
|
@ -105,11 +105,6 @@ public:
|
||||
*/
|
||||
void noise();
|
||||
|
||||
/**
|
||||
* Plays a digital speech resource
|
||||
*/
|
||||
void playSpeech(const Common::String &speechFile, int speechNum);
|
||||
|
||||
//@}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user