Skip to content

Commit

Permalink
Merge remote-tracking branch 'yquake2/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
0lvin committed Aug 11, 2024
2 parents 52a6de3 + 180050b commit a38c2b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/sound/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit a38c2b5

Please sign in to comment.