From 4f20e43614aa319d5592de0299a8f924dfa0efb1 Mon Sep 17 00:00:00 2001 From: "Dwayne M. Hubbard" Date: Thu, 5 Apr 2007 23:08:07 +0000 Subject: [PATCH] Merged revisions 60325 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r60325 | dhubbard | 2007-04-05 17:58:01 -0500 (Thu, 05 Apr 2007) | 1 line modified default GAIN for issue 5823, thanks jrwalliker ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60326 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- formats/format_wav.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/formats/format_wav.c b/formats/format_wav.c index 1bc922b935..2081433a6e 100644 --- a/formats/format_wav.c +++ b/formats/format_wav.c @@ -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)