shithub: choc

Download patch

ref: 8ed2da84d97835024d2f561512c418152077139f
parent: 831a521c0e87aff50375a9a5e01ff8e62ee025fe
author: Simon Howard <fraggle@gmail.com>
date: Sun Sep 11 16:53:17 EDT 2005

Fix sounds playing at the wrong volume (too quiet)

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 101

--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
 
+    Fix sound not playing at the right volume
     Allow alt-tab away while running in fullscreen under Windows
     Add second configuration file (chocolate-doom.cfg) to allow 
         chocolate-doom specific settings.
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: i_sound.c 87 2005-09-07 22:24:26Z fraggle $
+// $Id: i_sound.c 101 2005-09-11 20:53:17Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.18  2005/09/11 20:53:17  fraggle
+// Fix sounds playing at the wrong volume (too quiet)
+//
 // Revision 1.17  2005/09/07 22:24:26  fraggle
 // Modify the sound effect caching behaviour: sounds which are not playing
 // are now marked as PU_CACHE; it is otherwise possible to run out of memory.
@@ -87,7 +90,7 @@
 //-----------------------------------------------------------------------------
 
 static const char
-rcsid[] = "$Id: i_sound.c 87 2005-09-07 22:24:26Z fraggle $";
+rcsid[] = "$Id: i_sound.c 101 2005-09-11 20:53:17Z fraggle $";
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -212,7 +215,7 @@
     sound_chunks[sound].alen = expanded_length;
     sound_chunks[sound].abuf 
         = Z_Malloc(expanded_length, PU_STATIC, &sound_chunks[sound].abuf);
-    sound_chunks[sound].volume = 64;
+    sound_chunks[sound].volume = MIX_MAX_VOLUME;
 
     ExpandSoundData(data + 8, samplerate, length, &sound_chunks[sound]);
 
@@ -395,7 +398,7 @@
 
 
 
-void
+void 
 I_UpdateSoundParams
 ( int	handle,
   int	vol,