svn-id: r34440
This commit is contained in:
Filippos Karapetis 2008-09-08 08:07:06 +00:00
parent a8c4ffa93f
commit ea5ad543d9
2 changed files with 5 additions and 32 deletions

View File

@ -814,40 +814,14 @@ void Resource::loadGlobalResources(int chapter, int actorsEntrance) {
_vm->_script->_globalVoiceLUT.freeMem();
switch (chapter) {
case 1:
_vm->_sndRes->setVoiceBank(1);
voiceLUTResourceID = 23;
break;
case 2:
_vm->_sndRes->setVoiceBank(2);
voiceLUTResourceID = 24;
break;
case 3:
_vm->_sndRes->setVoiceBank(3);
voiceLUTResourceID = 25;
break;
case 4:
_vm->_sndRes->setVoiceBank(4);
voiceLUTResourceID = 26;
break;
case 5:
_vm->_sndRes->setVoiceBank(5);
voiceLUTResourceID = 27;
break;
case 6:
_vm->_sndRes->setVoiceBank(6);
voiceLUTResourceID = 28;
break;
case 7:
if (chapter != 7) {
int voiceBank = (chapter == 8) ? 0 : chapter;
_vm->_sndRes->setVoiceBank(voiceBank);
voiceLUTResourceID = 22 + voiceBank;
} else {
// IHNM demo
_vm->_sndRes->setVoiceBank(0);
voiceLUTResourceID = 17;
break;
case 8:
_vm->_sndRes->setVoiceBank(0);
voiceLUTResourceID = 22;
break;
}
if (voiceLUTResourceID) {

View File

@ -39,7 +39,6 @@ public:
SndRes(SagaEngine *vm);
~SndRes();
int loadSound(uint32 resourceId);
void playSound(uint32 resourceId, int volume, bool loop);
void playVoice(uint32 resourceId);
int getVoiceLength(uint32 resourceId);