From 70d07d91d62dcdd2f2268d1ac401bfb697b4c991 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Wed, 23 Nov 2022 12:10:59 -0600 Subject: [PATCH] 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. --- code/client/snd_mix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/snd_mix.c b/code/client/snd_mix.c index 4663911f..b381861a 100644 --- a/code/client/snd_mix.c +++ b/code/client/snd_mix.c @@ -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; }