diff options
author | Matthew Hoops | 2011-04-25 12:45:33 -0400 |
---|---|---|
committer | Sven Hesse | 2011-11-27 15:52:05 +0100 |
commit | 6bbff583146843baade8f6268a2e1ea92be416ba (patch) | |
tree | e80281c7d7a99a9a2c523e0b6684d17089797280 /video/coktel_decoder.h | |
parent | 5518721a17e751a2ac6deefe56ef0ce446f184ab (diff) | |
download | scummvm-rg350-6bbff583146843baade8f6268a2e1ea92be416ba.tar.gz scummvm-rg350-6bbff583146843baade8f6268a2e1ea92be416ba.tar.bz2 scummvm-rg350-6bbff583146843baade8f6268a2e1ea92be416ba.zip |
VIDEO: Rewrite VMD audio streaming
Audio is now decoded in AudioStream classes instead of being decoded ahead of time and then queued.
Diffstat (limited to 'video/coktel_decoder.h')
-rw-r--r-- | video/coktel_decoder.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/video/coktel_decoder.h b/video/coktel_decoder.h index 8ad1456037..b99a44f332 100644 --- a/video/coktel_decoder.h +++ b/video/coktel_decoder.h @@ -437,9 +437,6 @@ private: ~Frame(); }; - // Tables for the audio decompressors - static const uint16 _tableDPCM[128]; - Common::SeekableReadStream *_stream; byte _version; @@ -508,15 +505,10 @@ private: uint8 evaluateMask(uint32 mask, bool *fillInfo, uint8 &max); - // Generating sound slices - byte *soundEmpty (uint32 &size); - byte *sound8bitRaw (uint32 &size); - byte *sound16bitDPCM (uint32 &size); - byte *sound16bitADPCM(uint32 &size); - - // Sound decompression - byte *deDPCM (const byte *data, uint32 &size, int32 init[2]); - byte *deADPCM(const byte *data, uint32 &size, int32 init, int32 index); + // Generating audio streams + Audio::AudioStream *create8bitRaw (Common::SeekableReadStream *stream); + Audio::AudioStream *create16bitDPCM (Common::SeekableReadStream *stream); + Audio::AudioStream *create16bitADPCM(Common::SeekableReadStream *stream); bool getPartCoords(int16 frame, PartType type, int16 &x, int16 &y, int16 &width, int16 &height); }; |