aboutsummaryrefslogtreecommitdiffstats
path: root/plc.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-29 02:12:31 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-29 02:12:31 +0000
commit034c8b2f009e5f5c7d99763ccf4abf58220a4d22 (patch)
tree96cb784e927f40dd6941da633962a92cb83aa193 /plc.c
parent9fd49cde0567111f8d59080c291d91963f2020b0 (diff)
Add two widely used constants
#define DEFAULT_SAMPLE_RATE 8000 #define DEFAULT_SAMPLES_PER_MS ((DEFAULT_SAMPLE_RATE)/1000) to the main header, and remove equivalent ones from plc.[ch] This will simplify the cleanup of the codec/ and formats/ files. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15969 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'plc.c')
-rw-r--r--plc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plc.c b/plc.c
index 5db6f7d1b..f088aa72e 100644
--- a/plc.c
+++ b/plc.c
@@ -56,7 +56,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
/* We do a straight line fade to zero volume in 50ms when we are filling in for missing data. */
#define ATTENUATION_INCREMENT 0.0025 /* Attenuation per sample */
-#define ms_to_samples(t) (((t)*SAMPLE_RATE)/1000)
+#define ms_to_samples(t) (((t)*DEFAULT_SAMPLE_RATE)/1000)
static inline int16_t fsaturate(double damp)
{