aboutsummaryrefslogtreecommitdiff
path: root/engines/made/sound.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/made/sound.h')
-rw-r--r--engines/made/sound.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/made/sound.h b/engines/made/sound.h
index 02e046ed2e..eb2157bd42 100644
--- a/engines/made/sound.h
+++ b/engines/made/sound.h
@@ -33,6 +33,25 @@
namespace Made {
+class ManholeEgaSoundDecompressor {
+public:
+ void decompress(byte *source, byte *dest, uint32 size);
+protected:
+ byte *_source, *_dest;
+ uint32 _size;
+ uint16 _bitBuffer;
+ int _bitsLeft;
+ int32 _sample1, _sample2, _sample3, _sample4;
+ bool _writeFlag;
+ bool _eof;
+ int _mode;
+ int getBit();
+ void update0();
+ void update1();
+ void update2();
+ void update3();
+};
+
struct SoundEnergyItem {
uint32 position;
byte energy;