Skip to content

Commit

Permalink
Fix (disabled) Wavelet sound decompression
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zturtleman committed Nov 23, 2022
1 parent 84da653 commit 70d07d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/client/snd_mix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 70d07d9

Please sign in to comment.