Fix (disabled) Wavelet sound decompression

The first chunk of Wavelet sound was decoded as ADPCM and then
following chunks were decoded as Wavelet. It played as static
noise.

Using Wavelet compression requires engine code changes to enable.
This commit is contained in:
Zack Middleton 2022-11-23 12:10:59 -06:00
parent 84da6537c4
commit 70d07d91d6

View file

@ -383,7 +383,7 @@ void S_PaintChannelFromWavelet( channel_t *ch, sfx_t *sc, int count, int sampleO
}
if (i!=sfxScratchIndex || sfxScratchPointer != sc) {
S_AdpcmGetSamples( chunk, sfxScratchBuffer );
decodeWavelet(chunk, sfxScratchBuffer);
sfxScratchIndex = i;
sfxScratchPointer = sc;
}