diff options
author | Eugene Sandulenko | 2007-02-21 21:42:37 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2007-02-21 21:42:37 +0000 |
commit | b825fb858f204bfd07eaff77dee3100eb1b893bf (patch) | |
tree | 275ecee2b1dfecb3628ea5c7127a3890ced46999 /engines/parallaction/location.cpp | |
parent | b2539cc19cf569bedc1521173943fe5693fad322 (diff) | |
download | scummvm-rg350-b825fb858f204bfd07eaff77dee3100eb1b893bf.tar.gz scummvm-rg350-b825fb858f204bfd07eaff77dee3100eb1b893bf.tar.bz2 scummvm-rg350-b825fb858f204bfd07eaff77dee3100eb1b893bf.zip |
Add support for MIDI music. THough the music is not yet heard since
there are no instrument assignments yet.
svn-id: r25774
Diffstat (limited to 'engines/parallaction/location.cpp')
-rw-r--r-- | engines/parallaction/location.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/engines/parallaction/location.cpp b/engines/parallaction/location.cpp index a27420f32c..ae2964f3a3 100644 --- a/engines/parallaction/location.cpp +++ b/engines/parallaction/location.cpp @@ -333,23 +333,19 @@ void Parallaction::changeLocation(char *location) { // printf("changeLocation('%s')", location); if (_musicData1 != 0) { if (!scumm_stricmp(_characterName, "dino")) - loadMusic("dino"); + _vm->_midiPlayer->play("dino"); + else if (!scumm_stricmp(_characterName, "donna")) + _vm->_midiPlayer->play("donna"); else - if (!scumm_stricmp(_characterName, "donna")) - loadMusic("donna"); - else - loadMusic("nuts"); + _vm->_midiPlayer->play("nuts"); - playMusic(); _musicData1 = 0; debugC(2, kDebugLocation, "changeLocation: started character specific music"); } if (!scumm_stricmp(location, "night") || !scumm_stricmp(location, "intsushi")) { - stopMusic(); - loadMusic("soft"); - playMusic(); + _vm->_midiPlayer->play("soft"); debugC(2, kDebugLocation, "changeLocation: started music 'soft'"); } @@ -362,7 +358,7 @@ void Parallaction::changeLocation(char *location) { !scumm_stricmp(location, "endtgz") || !scumm_stricmp(location, "common")) { - stopMusic(); + _vm->_midiPlayer->stop(); _musicData1 = 1; debugC(2, kDebugLocation, "changeLocation: music stopped"); |