mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-07 17:22:02 +00:00
revert last change, it's too much experimental
svn-id: r17349
This commit is contained in:
parent
2296e4e02e
commit
aa50d6d7b0
@ -286,40 +286,27 @@ void IMuseDigital::playComiMusic(const char *songName, const imuseComiTable *tab
|
|||||||
|
|
||||||
switch(table->opcode) {
|
switch(table->opcode) {
|
||||||
case 0:
|
case 0:
|
||||||
fadeOutMusic(120);
|
|
||||||
break;
|
|
||||||
case 8:
|
case 8:
|
||||||
case 9:
|
case 9:
|
||||||
{
|
|
||||||
int soundId = getCurMusicSoundId();
|
|
||||||
setHookId(soundId, hookId);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 1:
|
|
||||||
fadeOutMusic(120);
|
fadeOutMusic(120);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
if (table->filename[0] == 0) {
|
if (table->filename[0] == 0) {
|
||||||
|
fadeOutMusic(120);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
fadeOutMusic(120);
|
||||||
startMusic(table->filename, table->soundId, 0, 1);
|
startMusic(table->filename, table->soundId, 0, 1);
|
||||||
setFade(table->soundId, 127, 120);
|
setFade(table->soundId, 127, 120);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
{
|
|
||||||
if (table->filename[0] == 0) {
|
if (table->filename[0] == 0) {
|
||||||
fadeOutMusic(60);
|
fadeOutMusic(60);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
char *soundName = getCurMusicSoundName();
|
fadeOutMusic(table->fadeOut60TicksDelay);
|
||||||
if ((strcmp(soundName, table->filename) == 0)) {
|
|
||||||
int soundId = getCurMusicSoundId();
|
|
||||||
setFade(soundId, 127, table->fadeOut60TicksDelay);
|
|
||||||
setHookId(soundId, hookId);
|
|
||||||
} else {
|
|
||||||
fadeOutMusic(120);
|
|
||||||
startMusic(table->filename, table->soundId, table->hookId, 127);
|
startMusic(table->filename, table->soundId, table->hookId, 127);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case 3:
|
case 3:
|
||||||
case 4:
|
case 4:
|
||||||
case 12:
|
case 12:
|
||||||
@ -327,9 +314,9 @@ void IMuseDigital::playComiMusic(const char *songName, const imuseComiTable *tab
|
|||||||
fadeOutMusic(60);
|
fadeOutMusic(60);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
fadeOutMusic(table->fadeOut60TicksDelay);
|
||||||
if ((!sequence) && (table->atribPos != 0) &&
|
if ((!sequence) && (table->atribPos != 0) &&
|
||||||
(table->atribPos == _comiStateMusicTable[_curMusicState].atribPos)) {
|
(table->atribPos == _comiStateMusicTable[_curMusicState].atribPos)) {
|
||||||
fadeOutMusic(table->fadeOut60TicksDelay);
|
|
||||||
startMusic(table->filename, table->soundId, 0, 127);
|
startMusic(table->filename, table->soundId, 0, 127);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user