From c4250c05d02dc25fb20e8314ec960bec5ac59779 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 19 Aug 2016 10:05:05 -0500 Subject: 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. --- engines/sci/resource.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/sci/resource.h') 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 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. -- cgit v1.2.3