commit 1501546e19ffe64bee2ddc07a66833a7b0f701c5
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Sep 3 01:00:19 2007 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Mon Sep 3 01:00:19 2007 +0000
Fix crash when playing long sounds (like DSBOSSIT)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 967
---
src/i_sdlsound.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/i_sdlsound.c b/src/i_sdlsound.c
index 70f45470..e10cb5ee 100644
--- a/src/i_sdlsound.c
+++ b/src/i_sdlsound.c
@@ -143,7 +143,7 @@ static void ExpandSoundData(byte *data,
// 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)