added voice support for mac dig demo

svn-id: r11330
This commit is contained in:
Paweł Kołodziejski 2003-11-17 22:52:21 +00:00
parent 5334ce49a8
commit 3ec24507ca

View File

@ -534,11 +534,15 @@ void Sound::startTalkSound(uint32 offset, uint32 b, int mode, PlayingSoundHandle
return;
}
sprintf(filename, "audio/%s.%d/%d.voc", roomname, offset, b);
_sfxFile->close();
sprintf(filename, "audio/%s.%d/%d.voc", roomname, offset, b);
_sfxFile->open(filename);
if (!_sfxFile->isOpen()) {
warning("startTalkSound: dig demo: voc file not found: %s", filename);
sprintf(filename, "%d.%d.voc", offset, b);
_sfxFile->open(filename);
}
if (!_sfxFile->isOpen()) {
warning("startTalkSound: dig demo: voc file not found");
return;
}