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 e9549aada01a15b18e1149bd71480806b3bb64cd
Author: m4n4t4...@gmail.com 
<m4n4t4...@gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Wed Jan 22 17:36:43 2014 +0000

    All: Fix stuttering in non-local looping sounds
---
 MP/code/client/snd_openal.c | 7 -------
 SP/code/client/snd_openal.c | 7 -------
 2 files changed, 14 deletions(-)

diff --git a/MP/code/client/snd_openal.c b/MP/code/client/snd_openal.c
index c489fd3..60c3e62 100644
--- a/MP/code/client/snd_openal.c
+++ b/MP/code/client/snd_openal.c
@@ -1479,15 +1479,8 @@ static void S_AL_SrcLoop( alSrcPriority_t priority, 
sfxHandle_t sfx,
                else
                        VectorClear(svelocity);
 
-               if ( volume > 255 ) {
-                       volume = 255;
-               } else if ( volume < 0 ) {
-                       volume = 0;
-               }
-
                qalSourcefv(curSource->alSource, AL_POSITION, (ALfloat *) 
sorigin);
                qalSourcefv(curSource->alSource, AL_VELOCITY, (ALfloat *) 
svelocity);
-               S_AL_Gain(curSource->alSource, volume / 255.0f);
        }
 }
 
diff --git a/SP/code/client/snd_openal.c b/SP/code/client/snd_openal.c
index 96c2c2c..e101e6f 100644
--- a/SP/code/client/snd_openal.c
+++ b/SP/code/client/snd_openal.c
@@ -1479,15 +1479,8 @@ static void S_AL_SrcLoop( alSrcPriority_t priority, 
sfxHandle_t sfx,
                else
                        VectorClear(svelocity);
 
-               if ( volume > 255 ) {
-                       volume = 255;
-               } else if ( volume < 0 ) {
-                       volume = 0;
-               }
-
                qalSourcefv(curSource->alSource, AL_POSITION, (ALfloat *) 
sorigin);
                qalSourcefv(curSource->alSource, AL_VELOCITY, (ALfloat *) 
svelocity);
-               S_AL_Gain(curSource->alSource, volume / 255.0f);
        }
 }
 

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

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to