mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Merge remote-tracking branch 'yquake2/master'
This commit is contained in:
commit
a38c2b5cee
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue