From 5b6d3078c9174f0b932b88bf9aeef7c11c3cb190 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Thu, 1 Aug 2013 23:36:20 +0200 Subject: TONY: Add a hack to work around amigaos4 issues. --- engines/tony/sound.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/tony/sound.cpp') diff --git a/engines/tony/sound.cpp b/engines/tony/sound.cpp index 90ae241db0..547f31906e 100644 --- a/engines/tony/sound.cpp +++ b/engines/tony/sound.cpp @@ -500,7 +500,13 @@ bool FPStream::loadFile(const Common::String &fileName, uint32 codec, int bufSiz break; case FPCODEC_ADPCM: +#ifdef __amigaos4__ + // HACK: AmigaOS 4 has weird performance problems with reading in the audio thread, + // so we read the whole stream into memory. + _rewindableStream = Audio::makeADPCMStream(_file.readStream(_size), DisposeAfterUse::YES, 0, Audio::kADPCMDVI, 44100, 2); +#else _rewindableStream = Audio::makeADPCMStream(&_file, DisposeAfterUse::NO, 0, Audio::kADPCMDVI, 44100, 2); +#endif break; default: -- cgit v1.2.3