diff options
author | Paweł Kołodziejski | 2005-04-03 17:11:06 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2005-04-03 17:11:06 +0000 |
commit | aa50d6d7b0fbdbdbbae646eaa5aba752fc824403 (patch) | |
tree | 14a2d12d32b27b94b74e2cf13762f642d091b99a /scumm/imuse_digi | |
parent | 2296e4e02ed7dcf915c59742ac6fe1f4a535b530 (diff) | |
download | scummvm-rg350-aa50d6d7b0fbdbdbbae646eaa5aba752fc824403.tar.gz scummvm-rg350-aa50d6d7b0fbdbdbbae646eaa5aba752fc824403.tar.bz2 scummvm-rg350-aa50d6d7b0fbdbdbbae646eaa5aba752fc824403.zip |
revert last change, it's too much experimental
svn-id: r17349
Diffstat (limited to 'scumm/imuse_digi')
-rw-r--r-- | scumm/imuse_digi/dimuse_music.cpp | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/scumm/imuse_digi/dimuse_music.cpp b/scumm/imuse_digi/dimuse_music.cpp index 547b6ab605..da57398353 100644 --- a/scumm/imuse_digi/dimuse_music.cpp +++ b/scumm/imuse_digi/dimuse_music.cpp @@ -286,40 +286,27 @@ void IMuseDigital::playComiMusic(const char *songName, const imuseComiTable *tab switch(table->opcode) { case 0: - fadeOutMusic(120); - break; case 8: case 9: - { - int soundId = getCurMusicSoundId(); - setHookId(soundId, hookId); - break; - } - case 1: fadeOutMusic(120); + break; + case 1: if (table->filename[0] == 0) { + fadeOutMusic(120); return; } + fadeOutMusic(120); startMusic(table->filename, table->soundId, 0, 1); setFade(table->soundId, 127, 120); break; case 2: - { - if (table->filename[0] == 0) { - fadeOutMusic(60); - return; - } - char *soundName = getCurMusicSoundName(); - 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); - } - break; + if (table->filename[0] == 0) { + fadeOutMusic(60); + return; } + fadeOutMusic(table->fadeOut60TicksDelay); + startMusic(table->filename, table->soundId, table->hookId, 127); + break; case 3: case 4: case 12: @@ -327,9 +314,9 @@ void IMuseDigital::playComiMusic(const char *songName, const imuseComiTable *tab fadeOutMusic(60); return; } + fadeOutMusic(table->fadeOut60TicksDelay); if ((!sequence) && (table->atribPos != 0) && (table->atribPos == _comiStateMusicTable[_curMusicState].atribPos)) { - fadeOutMusic(table->fadeOut60TicksDelay); startMusic(table->filename, table->soundId, 0, 127); return; } |