diff options
author | Simon Howard | 2007-09-03 01:00:19 +0000 |
---|---|---|
committer | Simon Howard | 2007-09-03 01:00:19 +0000 |
commit | 1501546e19ffe64bee2ddc07a66833a7b0f701c5 (patch) | |
tree | cb9d5203c8d0071d259c273a484779458d8518bf | |
parent | 604e09624e22148458ddb12526f2646e600f29bd (diff) | |
download | chocolate-doom-1501546e19ffe64bee2ddc07a66833a7b0f701c5.tar.gz chocolate-doom-1501546e19ffe64bee2ddc07a66833a7b0f701c5.tar.bz2 chocolate-doom-1501546e19ffe64bee2ddc07a66833a7b0f701c5.zip |
Fix crash when playing long sounds (like DSBOSSIT)
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 967
-rw-r--r-- | src/i_sdlsound.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |