aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/sound/entry.h
diff options
context:
space:
mode:
authorLittleboy2011-06-29 06:19:19 -0400
committerLittleboy2011-06-29 11:07:24 -0400
commit9cc5d404c7c5d096f05d37680eb85929802290df (patch)
treecf2b42fe2ca0a551d7a27359340b578b18891f21 /engines/lastexpress/sound/entry.h
parentb0ee7bbb7ee5b56ff1293c148aab535fedaa01b1 (diff)
downloadscummvm-rg350-9cc5d404c7c5d096f05d37680eb85929802290df.tar.gz
scummvm-rg350-9cc5d404c7c5d096f05d37680eb85929802290df.tar.bz2
scummvm-rg350-9cc5d404c7c5d096f05d37680eb85929802290df.zip
LASTEXPRESS: Replace shared sound buffer by per-entry buffer
Diffstat (limited to 'engines/lastexpress/sound/entry.h')
-rw-r--r--engines/lastexpress/sound/entry.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/lastexpress/sound/entry.h b/engines/lastexpress/sound/entry.h
index 60795332f8..6b0f780152 100644
--- a/engines/lastexpress/sound/entry.h
+++ b/engines/lastexpress/sound/entry.h
@@ -152,10 +152,7 @@ public:
// Streams
Common::SeekableReadStream *getStream() { return _stream; }
StreamedSound *getStreamedSound() { return _soundStream; }
-
-public:
- // TODO replace by on-the-fly allocated buffer
- void *_soundData;
+ byte *getSoundBuffer() { return _soundBuffer; }
private:
LastExpressEngine *_engine;
@@ -184,8 +181,11 @@ private:
// original has pointer to the next structure in the list (not used)
SubtitleEntry *_subtitle;
- // Sound stream
+ // Sound buffer & stream
+ byte *_soundBuffer;
StreamedSound *_soundStream;
+
+ void setupCache();
};
//////////////////////////////////////////////////////////////////////////