From ae827dbd86b23c806864c85a759a08f03a4335ef Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 22 Jul 2024 21:44:06 +0100 Subject: [PATCH] client sound fade_data is only really used later. --- src/client/sound/sound.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/sound/sound.c b/src/client/sound/sound.c index 513c5bfa..79f88e65 100644 --- a/src/client/sound/sound.c +++ b/src/client/sound/sound.c @@ -385,7 +385,7 @@ S_GetStatistics(const byte *data, int sound_length, int width, int channels, // calculate attack/fade length byte *sound_data = (byte *)data; byte *delay_data = sound_data; - byte *fade_data = sound_data; + byte *fade_data; byte *sound_end = sound_data + sound_length; short sound_sample = 0; short sound_treshold = sound_max / 2; @@ -401,7 +401,6 @@ S_GetStatistics(const byte *data, int sound_length, int width, int channels, /* delay_data == (short *)(data + info.dataofs) */ *begin_length = (sound_data - delay_data) / channels; delay_data = sound_data; - fade_data = sound_data; /* attack calculate */ do