summaryrefslogtreecommitdiff
path: root/formats/format_wav.c
diff options
context:
space:
mode:
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>2007-04-05 23:08:07 +0000
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>2007-04-05 23:08:07 +0000
commit4f20e43614aa319d5592de0299a8f924dfa0efb1 (patch)
treea6d089d1ec5f2362f251407dc9c468a9b089f2b2 /formats/format_wav.c
parentcd88d132ce691541db8c8f2066e3386aabe9202b (diff)
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
Diffstat (limited to 'formats/format_wav.c')
-rw-r--r--formats/format_wav.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/formats/format_wav.c b/formats/format_wav.c
index 1bc922b93..2081433a6 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)