diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-03-29 02:12:31 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-03-29 02:12:31 +0000 |
commit | 68ab41ebfe599ad857bb0d4ca1fc892a83545588 (patch) | |
tree | 96cb784e927f40dd6941da633962a92cb83aa193 /plc.c | |
parent | 150e0b72ccbef905d730fdf125a2df9e0011fcb7 (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: https://origsvn.digium.com/svn/asterisk/trunk@15969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'plc.c')
-rw-r--r-- | plc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |