]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 6 Jun 2007 23:27:21 +0000 (23:27 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 6 Jun 2007 23:27:21 +0000 (23:27 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@225 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/include/libteletone.h
libs/freetdm/src/include/libteletone_generate.h
libs/freetdm/src/libteletone_generate.c

index 351afa1413d2e88860ded007e57e386ea8c4736a..aaf7b0ed4794c4ab9eefb9b5ca53fdd0377b08f4 100644 (file)
 
 #ifdef __cplusplus
 extern "C" {
-#ifdef _doh
-}
-#endif
 #endif
-
 #define        TELETONE_MAX_DTMF_DIGITS 128
 #define TELETONE_MAX_TONES 6
 #define TELETONE_TONE_RANGE 127
@@ -85,9 +81,9 @@ extern "C" {
 typedef double teletone_process_t;
 
 /*! \file libteletone.h
-  \brief Top level include file
+    \brief Top level include file
 
-  This file should be included by applications using the library
+       This file should be included by applications using the library
 */
 
 /*! \brief An abstraction to store a tone mapping */
@@ -96,7 +92,6 @@ typedef struct {
        teletone_process_t freqs[TELETONE_MAX_TONES];
 } teletone_tone_map_t;
 
-
 #if !defined(M_PI)
 /* C99 systems may not define M_PI */
 #define M_PI 3.14159265358979323846264338327
index 0ed8930539d3e4c8f918eb673c324ba5a5452bff..be791555bd19f6737a8b15b4aa636a022eb2c788 100644 (file)
@@ -112,7 +112,7 @@ struct teletone_dds_state {
        uint32_t scale_factor;
        uint32_t phase_accumulator;
        int16_t sample;
-       int32_t tx_level;
+       float tx_level;
 };
 typedef struct teletone_dds_state teletone_dds_state_t;
 
@@ -123,7 +123,7 @@ typedef struct teletone_dds_state teletone_dds_state_t;
 /* 3.02 represents twice the power */
 #define DBM0_MAX_POWER (3.14f + 3.02f)
 
-const int16_t TELETONE_SINES[SINE_TABLE_MAX];
+extern int16_t TELETONE_SINES[SINE_TABLE_MAX];
 
 static __inline__ int16_t teletone_dds_modulate_sample(teletone_dds_state_t *dds)
 {
index 9a36e6280c8f4f8c79bd23b2f79eb690ca26636d..edd573c7a1a8e50a947e0dc280fe83d967901710 100644 (file)
@@ -79,7 +79,7 @@
 #pragma warning(disable:4706)
 #endif
 
-const int16_t TELETONE_SINES[SINE_TABLE_MAX] = {
+int16_t TELETONE_SINES[SINE_TABLE_MAX] = {
        0x00c9, 0x025b, 0x03ed, 0x057f, 0x0711, 0x08a2, 0x0a33, 0x0bc4,
        0x0d54, 0x0ee4, 0x1073, 0x1201, 0x138f, 0x151c, 0x16a8, 0x1833,
        0x19be, 0x1b47, 0x1cd0, 0x1e57, 0x1fdd, 0x2162, 0x22e5, 0x2467,