diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-29 02:12:31 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-29 02:12:31 +0000 |
commit | 034c8b2f009e5f5c7d99763ccf4abf58220a4d22 (patch) | |
tree | 96cb784e927f40dd6941da633962a92cb83aa193 /include | |
parent | 9fd49cde0567111f8d59080c291d91963f2020b0 (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 'include')
-rw-r--r-- | include/asterisk.h | 3 | ||||
-rw-r--r-- | include/asterisk/plc.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/asterisk.h b/include/asterisk.h index 7d052bbf3..97682423e 100644 --- a/include/asterisk.h +++ b/include/asterisk.h @@ -20,6 +20,9 @@ #define DEFAULT_LANGUAGE "en" +#define DEFAULT_SAMPLE_RATE 8000 +#define DEFAULT_SAMPLES_PER_MS ((DEFAULT_SAMPLE_RATE)/1000) + #define AST_CONFIG_MAX_PATH 255 /* provided in asterisk.c */ diff --git a/include/asterisk/plc.h b/include/asterisk/plc.h index a790ca167..22eb738ac 100644 --- a/include/asterisk/plc.h +++ b/include/asterisk/plc.h @@ -95,8 +95,6 @@ When a real packet is not available in time, call plc_fillin() to create a sythe That's it! */ -#define SAMPLE_RATE 8000 - /*! Minimum allowed pitch (66 Hz) */ #define PLC_PITCH_MIN 120 /*! Maximum allowed pitch (200 Hz) */ |