aboutsummaryrefslogtreecommitdiff
path: root/engines/made/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/made/resource.cpp')
-rw-r--r--engines/made/resource.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/engines/made/resource.cpp b/engines/made/resource.cpp
index c3c9195204..b44c2d100c 100644
--- a/engines/made/resource.cpp
+++ b/engines/made/resource.cpp
@@ -265,16 +265,10 @@ Audio::AudioStream *SoundResource::getAudioStream(int soundRate, bool loop) {
}
void SoundResourceV1::load(byte *source, int size) {
- // TODO: This is all wrong. Seems like the sound is compressed
- // but where is the compression info? (chunks, chunk size)
-
- _soundSize = size;
+ _soundSize = size * 4;
_soundData = new byte[_soundSize];
-
- // TODO: We set the audio to silent for now
- //memcpy(_soundData, source, _soundSize);
- memset(_soundData, 0x80, _soundSize);
-
+ ManholeEgaSoundDecompressor dec;
+ dec.decompress(source, _soundData, size);
}
/* MenuResource */