diff options
Diffstat (limited to 'engines/agos/res_snd.cpp')
-rw-r--r-- | engines/agos/res_snd.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp index c6417962fb..7f11367d0f 100644 --- a/engines/agos/res_snd.cpp +++ b/engines/agos/res_snd.cpp @@ -25,17 +25,18 @@ #include "common/config-manager.h" #include "common/file.h" +#include "common/memstream.h" #include "agos/intern.h" #include "agos/agos.h" #include "agos/vga.h" +#include "backends/audiocd/audiocd.h" + #include "sound/audiostream.h" #include "sound/mididrv.h" #include "sound/mods/protracker.h" -using Common::File; - namespace AGOS { void AGOSEngine_Simon1::playSpeech(uint16 speech_id, uint16 vgaSpriteId) { @@ -174,7 +175,7 @@ static const ModuleOffs amigaWaxworksOffs[20] = { void AGOSEngine::playModule(uint16 music) { char filename[15]; - File f; + Common::File f; uint32 offs = 0; if (getPlatform() == Common::kPlatformAmiga && getGameType() == GType_WW) { @@ -261,7 +262,7 @@ void AGOSEngine_Simon1::playMusic(uint16 music, uint16 track) { // TODO: Add support for Desktop Tracker format in Acorn disk version } else { char filename[15]; - File f; + Common::File f; sprintf(filename, "MOD%d.MUS", music); f.open(filename); if (f.isOpen() == false) @@ -290,7 +291,7 @@ void AGOSEngine::playMusic(uint16 music, uint16 track) { _midi.setLoop(true); // Must do this BEFORE loading music. char filename[15]; - File f; + Common::File f; sprintf(filename, "MOD%d.MUS", music); f.open(filename); if (f.isOpen() == false) @@ -315,7 +316,7 @@ void AGOSEngine::playSting(uint16 soundId) { char filename[15]; - File mus_file; + Common::File mus_file; uint16 mus_offset; sprintf(filename, "STINGS%i.MUS", _soundFileId); @@ -346,7 +347,7 @@ static const byte elvira1_soundTable[100] = { }; bool AGOSEngine::loadVGASoundFile(uint16 id, uint8 type) { - File in; + Common::File in; char filename[15]; byte *dst; uint32 srcSize, dstSize; @@ -451,7 +452,7 @@ static const char *dimpSoundList[32] = { void AGOSEngine::loadSoundFile(const char* filename) { - File in; + Common::File in; in.open(filename); if (in.isOpen() == false) @@ -470,7 +471,7 @@ void AGOSEngine::loadSound(uint16 sound, int16 pan, int16 vol, uint16 type) { byte *dst; if (getGameId() == GID_DIMP) { - File in; + Common::File in; char filename[15]; assert(sound >= 1 && sound <= 32); |