diff options
author | Sven Hesse | 2010-08-08 00:59:28 +0000 |
---|---|---|
committer | Sven Hesse | 2010-08-08 00:59:28 +0000 |
commit | 6d31b1768500f03734d4e24dc13d088215071bde (patch) | |
tree | 632c999697d4308c18cc0c25f63f15c146189dd8 /graphics/video/coktel_decoder.h | |
parent | 0886f7e33cbb800c93caab79aedbef2d1cd64967 (diff) | |
download | scummvm-rg350-6d31b1768500f03734d4e24dc13d088215071bde.tar.gz scummvm-rg350-6d31b1768500f03734d4e24dc13d088215071bde.tar.bz2 scummvm-rg350-6d31b1768500f03734d4e24dc13d088215071bde.zip |
VIDEO: Implement VMD sound
svn-id: r51903
Diffstat (limited to 'graphics/video/coktel_decoder.h')
-rw-r--r-- | graphics/video/coktel_decoder.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/graphics/video/coktel_decoder.h b/graphics/video/coktel_decoder.h index aacb039393..4f52a34a40 100644 --- a/graphics/video/coktel_decoder.h +++ b/graphics/video/coktel_decoder.h @@ -464,10 +464,21 @@ private: bool renderFrame(int16 &left, int16 &top, int16 &right, int16 &bottom); // Sound - void emptySoundSlice(uint32 size); - void filledSoundSlice(uint32 size); + void emptySoundSlice (uint32 size); + void filledSoundSlice (uint32 size); void filledSoundSlices(uint32 size, uint32 mask); + 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); }; } // End of namespace Graphics |