aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/sound.h
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-21 19:44:05 +0200
committerEugene Sandulenko2019-09-03 17:17:34 +0200
commitd1ef6fc0082c76993fa6288f2564c845ae35a7b3 (patch)
treec05f6d9c14f81b797043dbae628f0f19eb11c8b1 /engines/hdb/sound.h
parent9907ebed0a81c0e8af377edac0f3c3653ffbe024 (diff)
downloadscummvm-rg350-d1ef6fc0082c76993fa6288f2564c845ae35a7b3.tar.gz
scummvm-rg350-d1ef6fc0082c76993fa6288f2564c845ae35a7b3.tar.bz2
scummvm-rg350-d1ef6fc0082c76993fa6288f2564c845ae35a7b3.zip
HDB: Cache sounds as data pointers. This fixes problem with distorted sounds
Diffstat (limited to 'engines/hdb/sound.h')
-rw-r--r--engines/hdb/sound.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/sound.h b/engines/hdb/sound.h
index 6578faa83e..6797808a7d 100644
--- a/engines/hdb/sound.h
+++ b/engines/hdb/sound.h
@@ -1454,7 +1454,7 @@ 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
- Common::SeekableReadStream *data;
+ byte *data;
SoundCache() : loaded(SNDMEM_NOTCACHED), size(0), name(nullptr), luaName(nullptr), ext(SNDTYPE_NONE), data(nullptr) {}
};