diff options
author | Colin Snover | 2016-08-19 10:05:05 -0500 |
---|---|---|
committer | Colin Snover | 2016-08-19 15:23:10 -0500 |
commit | c4250c05d02dc25fb20e8314ec960bec5ac59779 (patch) | |
tree | 638c628b3ef0a7585dfdfc3b8b8b8a30cd6653a8 /engines/sci/resource.h | |
parent | 0a4a2567a3b8f42f6aad9f03e7619bd88a25322d (diff) | |
download | scummvm-rg350-c4250c05d02dc25fb20e8314ec960bec5ac59779.tar.gz scummvm-rg350-c4250c05d02dc25fb20e8314ec960bec5ac59779.tar.bz2 scummvm-rg350-c4250c05d02dc25fb20e8314ec960bec5ac59779.zip |
SCI32: Enable multi-disc audio resources
Phant1, PQ:SWAT, GK2, and Phant2 all have different audio maps
and audio volumes on each CD. In order to make this work within
ScummVM, where CDs are never swapped, each RESOURCE.AUD for these
games must be renamed to RESAUD.00x and each RESOURCE.SFX renamed
to RESSFX.00x.
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r-- | engines/sci/resource.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h index 49cc52399e..70db5909b7 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -296,6 +296,7 @@ protected: typedef Common::HashMap<ResourceId, Resource *, ResourceIdHash> ResourceMap; +class IntMapResourceSource; class ResourceManager { // FIXME: These 'friend' declarations are meant to be a temporary hack to // ease transition to the ResourceSource class system. @@ -414,6 +415,12 @@ private: */ int16 _currentDiscNo; + /** + * If true, the game has multiple audio volumes that contain different + * audio files for each disc. + */ + bool _multiDiscAudio; + public: #endif @@ -538,7 +545,7 @@ protected: * @param map The map * @return 0 on success, an SCI_ERROR_* code otherwise */ - int readAudioMapSCI11(ResourceSource *map); + int readAudioMapSCI11(IntMapResourceSource *map); /** * Reads SCI1 audio map files. |