added voice support for mac dig demo
svn-id: r11330
This commit is contained in:
parent
5334ce49a8
commit
3ec24507ca
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue