diff options
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/agi.cpp | 1 | ||||
-rw-r--r-- | engines/agi/preagi_winnie.cpp | 1 | ||||
-rw-r--r-- | engines/agi/sound_2gs.cpp | 5 | ||||
-rw-r--r-- | engines/agi/sound_midi.cpp | 1 |
4 files changed, 6 insertions, 2 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index cfe921a91e..885704b9c6 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -27,6 +27,7 @@ #include "common/events.h" #include "common/EventRecorder.h" #include "common/file.h" +#include "common/memstream.h" #include "common/savefile.h" #include "common/config-manager.h" #include "common/debug-channels.h" diff --git a/engines/agi/preagi_winnie.cpp b/engines/agi/preagi_winnie.cpp index 14d90f3211..643cbd86a9 100644 --- a/engines/agi/preagi_winnie.cpp +++ b/engines/agi/preagi_winnie.cpp @@ -30,6 +30,7 @@ #include "graphics/cursorman.h" #include "common/events.h" +#include "common/memstream.h" #include "common/savefile.h" namespace Agi { diff --git a/engines/agi/sound_2gs.cpp b/engines/agi/sound_2gs.cpp index 2748344b36..4ed4fb7bab 100644 --- a/engines/agi/sound_2gs.cpp +++ b/engines/agi/sound_2gs.cpp @@ -26,6 +26,7 @@ #include "common/config-manager.h" #include "common/fs.h" #include "common/md5.h" +#include "common/memstream.h" #include "common/str-array.h" #include "agi/agi.h" @@ -839,7 +840,7 @@ bool SoundGen2GS::loadInstrumentHeaders(const Common::FSNode &exePath, const IIg } // Read the whole executable file into memory - Common::SharedPtr<Common::MemoryReadStream> data(file.readStream(file.size())); + Common::SharedPtr<Common::SeekableReadStream> data(file.readStream(file.size())); file.close(); // Check that we got enough data to be able to parse the instruments @@ -891,7 +892,7 @@ bool SoundGen2GS::loadWaveFile(const Common::FSNode &wavePath, const IIgsExeInfo // Open the wave file and read it into memory file.open(wavePath); - Common::SharedPtr<Common::MemoryReadStream> uint8Wave(file.readStream(file.size())); + Common::SharedPtr<Common::SeekableReadStream> uint8Wave(file.readStream(file.size())); file.close(); // Check that we got the whole wave file diff --git a/engines/agi/sound_midi.cpp b/engines/agi/sound_midi.cpp index f7f38a8d55..9011ecaa86 100644 --- a/engines/agi/sound_midi.cpp +++ b/engines/agi/sound_midi.cpp @@ -47,6 +47,7 @@ #include "sound/midiparser.h" #include "common/config-manager.h" #include "common/file.h" +#include "common/memstream.h" #include "common/stream.h" #include "agi/agi.h" |