diff options
author | Nicola Mettifogo | 2007-05-01 15:39:40 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-05-01 15:39:40 +0000 |
commit | 008042ac2538bebfce013cb0ec4efa4a5600e4bb (patch) | |
tree | 3c1107a6a9323641201a6ebb11960214891c3cc9 /engines/parallaction/location.cpp | |
parent | d520bdfcb8f70e8fd4448ea404d9e5fa993f23ca (diff) | |
download | scummvm-rg350-008042ac2538bebfce013cb0ec4efa4a5600e4bb.tar.gz scummvm-rg350-008042ac2538bebfce013cb0ec4efa4a5600e4bb.tar.bz2 scummvm-rg350-008042ac2538bebfce013cb0ec4efa4a5600e4bb.zip |
Implemented a IFF (Interchange File Format) parser and added subclasses to parse graphics (ILBM, PBM) and audio (8SVX), thus replacing old decoding routines. SAGA and Parallaction have been adjusted to work with the new code.
svn-id: r26719
Diffstat (limited to 'engines/parallaction/location.cpp')
-rw-r--r-- | engines/parallaction/location.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/parallaction/location.cpp b/engines/parallaction/location.cpp index c0c2d8cad5..3c76021097 100644 --- a/engines/parallaction/location.cpp +++ b/engines/parallaction/location.cpp @@ -154,6 +154,10 @@ void Parallaction::parseLocation(const char *filename) { if (getPlatform() == Common::kPlatformAmiga) _soundMan->setMusicFile(_tokens[1]); } + if (!scumm_stricmp(_tokens[0], "SOUND")) { +// if (getPlatform() == Common::kPlatformAmiga) +// _soundMan->loadSfx(_tokens[1], atoi(_tokens[2])); + } fillBuffers(*_locationScript, true); } @@ -181,6 +185,11 @@ void Parallaction::resolveLocationForwards() { void Parallaction::freeLocation() { debugC(7, kDebugLocation, "freeLocation"); + _soundMan->stopSfx(0); + _soundMan->stopSfx(1); + _soundMan->stopSfx(2); + _soundMan->stopSfx(3); + if (_localFlagNames) delete _localFlagNames; _localFlagNames = new Table(120); @@ -413,6 +422,8 @@ void Parallaction::changeLocation(char *location) { debugC(1, kDebugLocation, "changeLocation: location acommands run"); } +// _soundMan->playSfx(0); + debugC(1, kDebugLocation, "changeLocation completed"); return; |