aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/sound.h
diff options
context:
space:
mode:
authorNipun Garg2019-08-21 22:23:17 +0530
committerEugene Sandulenko2019-09-03 17:17:34 +0200
commit429bb7af4d4f333cf7304fa27b8bec05c8cfaa04 (patch)
tree45a56b31d92b4049b7b1d0bee5e54573eec6c96c /engines/hdb/sound.h
parent0ca9c2fbccab01e06f9fa637a50dfae8b34599b7 (diff)
downloadscummvm-rg350-429bb7af4d4f333cf7304fa27b8bec05c8cfaa04.tar.gz
scummvm-rg350-429bb7af4d4f333cf7304fa27b8bec05c8cfaa04.tar.bz2
scummvm-rg350-429bb7af4d4f333cf7304fa27b8bec05c8cfaa04.zip
HDB: Fix Sound caching to prevent Vorbis crash
Diffstat (limited to 'engines/hdb/sound.h')
-rw-r--r--engines/hdb/sound.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/sound.h b/engines/hdb/sound.h
index b4661e42f1..e5c3e5f484 100644
--- a/engines/hdb/sound.h
+++ b/engines/hdb/sound.h
@@ -1454,9 +1454,9 @@ struct SoundCache {
const char *name; // filename / MSD name
const char *luaName; // name used by Lua for i.d.
SndType ext; // 0 = Uninitialized, -1 = WAV, 1 = MP3
- Audio::SeekableAudioStream *audioStream;
+ Common::SeekableReadStream *data;
- SoundCache() : loaded(SNDMEM_NOTCACHED), size(0), name(nullptr), luaName(nullptr), ext(SNDTYPE_NONE), audioStream(nullptr) {}
+ SoundCache() : loaded(SNDMEM_NOTCACHED), size(0), name(nullptr), luaName(nullptr), ext(SNDTYPE_NONE), data(nullptr) {}
};
struct Song {