From ff6028b00bca2a01ed41f8f8ed5ee5c86f8f1410 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 22 Apr 2006 03:00:21 +0000 Subject: - Implemented MS ADPCM WAV format decoder used in Feeble Files. Still it is out of sync with video. See TODO there. - Fixed bug with MS IMA ADPCM mono to make it possible to work in real streams. svn-id: r22080 --- engines/scumm/he/sound_he.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/scumm/he/sound_he.cpp') diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp index a906a0b390..57a03ed129 100644 --- a/engines/scumm/he/sound_he.cpp +++ b/engines/scumm/he/sound_he.cpp @@ -419,7 +419,7 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) { } if (compType == 17) { - AudioStream *voxStream = makeADPCMStream(&stream, size, kADPCMIma, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1, blockAlign); + AudioStream *voxStream = makeADPCMStream(&stream, size, kADPCMMSIma, rate, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1, blockAlign); sound = (char *)malloc(size * 4); size = voxStream->readBuffer((int16*)sound, size * 2); -- cgit v1.2.3