[iortcw] 75/497: All: Partially revert r540 (Causes crash with higher com_soundMegs settings)

Simon McVittie smcv at debian.org
Fri Sep 8 10:36:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 64fb3865a2f45e4f3422d0aef295794b9c7a5e35
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Mon Mar 17 18:37:30 2014 +0000

    All: Partially revert r540 (Causes crash with higher com_soundMegs settings)
---
 MP/code/client/snd_mem.c | 2 +-
 SP/code/client/snd_mem.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/client/snd_mem.c b/MP/code/client/snd_mem.c
index 93f9c7d..c5bc8db 100644
--- a/MP/code/client/snd_mem.c
+++ b/MP/code/client/snd_mem.c
@@ -81,7 +81,7 @@ void SND_setup(void) {
 
 	cv = Cvar_Get( "com_soundMegs", DEF_COMSOUNDMEGS, CVAR_LATCH | CVAR_ARCHIVE );
 
-	scs = (cv->integer*1536*dma.speed/22050.0f);
+	scs = (cv->integer*1536);
 
 	buffer = malloc(scs*sizeof(sndBuffer) );
 	// allocate the stack based hunk allocator
diff --git a/SP/code/client/snd_mem.c b/SP/code/client/snd_mem.c
index f6c59ba..b5b8500 100644
--- a/SP/code/client/snd_mem.c
+++ b/SP/code/client/snd_mem.c
@@ -81,7 +81,7 @@ void SND_setup(void) {
 
 	cv = Cvar_Get( "com_soundMegs", DEF_COMSOUNDMEGS, CVAR_LATCH | CVAR_ARCHIVE );
 
-	scs = (cv->integer*1536*dma.speed/22050.0f);
+	scs = (cv->integer*1536);
 
 	buffer = malloc(scs*sizeof(sndBuffer) );
 	// allocate the stack based hunk allocator

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list