From 1501546e19ffe64bee2ddc07a66833a7b0f701c5 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 3 Sep 2007 01:00:19 +0000 Subject: 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(-) (limited to 'src') 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