fix song rate choosing

This commit is contained in:
Chris Danford
2003-08-07 06:08:29 +00:00
parent 09fee49676
commit 426930692a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ void RageSound::RateChange(char *buf, int &cnt,
/* Input 4 samples, output 5; 25% slowdown with no
* rounding error. */
Sint16 samps[16];
Sint16 samps[20]; // max 2x rate
ASSERT(size_t(speed_input_samples) <= sizeof(samps)/sizeof(*samps));
int s;
for(s = 0; s < speed_input_samples; ++s) {