]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
modified default GAIN for issue 5823, thanks jrwalliker
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Thu, 5 Apr 2007 22:58:01 +0000 (22:58 +0000)
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Thu, 5 Apr 2007 22:58:01 +0000 (22:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60325 65c4cc65-6c06-0410-ace0-fbb531ad65f3

formats/format_wav.c

index 1bc922b935c09e470e34d026de428b88323aa072..2081433a6e3779c9fc19b468a5fb52218dae2759 100644 (file)
@@ -61,7 +61,8 @@ struct wav_desc {     /* format-specific parameters */
 
 #define BLOCKSIZE 160
 
-#define GAIN 2         /* 2^GAIN is the multiple to increase the volume by */
+#define GAIN 0         /* 2^GAIN is the multiple to increase the volume by.  The original value of GAIN was 2, or 4x (12 dB),
+                        * but there were many reports of the clipping of loud signal peaks (issue 5823 for example). */
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define htoll(b) (b)