ref: 1501546e19ffe64bee2ddc07a66833a7b0f701c5
parent: 604e09624e22148458ddb12526f2646e600f29bd
author: Simon Howard <fraggle@gmail.com>
date: Sun Sep 2 21:00:19 EDT 2007
Fix crash when playing long sounds (like DSBOSSIT) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 967
--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -143,7 +143,7 @@
// number of samples in the converted sound
- expanded_length = (length * mixer_freq) / samplerate;
+ expanded_length = ((uint64_t) length * mixer_freq) / samplerate;
expand_ratio = (length << 8) / expanded_length;
for (i=0; i<expanded_length; ++i)