Make CAS tone quieter
authorMark Spencer <markster@digium.com>
Mon, 21 Jun 2004 22:36:25 +0000 (22:36 +0000)
committerMark Spencer <markster@digium.com>
Mon, 21 Jun 2004 22:36:25 +0000 (22:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3265 65c4cc65-6c06-0410-ace0-fbb531ad65f3

callerid.c

index 8d61f6f..859a876 100755 (executable)
@@ -73,7 +73,7 @@ static inline void gen_tones(unsigned char *buf, int len, int codec, float ddr1,
                t = 2.0 - (*cr2 * *cr2 + *ci2 * *ci2);
                *cr2 *= t;
                *ci2 *= t;      
-               buf[x] = AST_LIN2X((*cr1 + *cr2) * 8192.0);
+               buf[x] = AST_LIN2X((*cr1 + *cr2) * 2048.0);
        }
 }