git-svn-id: http://svn.openzap.org/svn/openzap/trunk@225 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2007-06-06 23:27:21 +00:00
parent c620d60f45
commit 9a0e8c6a1f
3 changed files with 5 additions and 10 deletions

View File

@ -73,11 +73,7 @@
#ifdef __cplusplus
extern "C" {
#ifdef _doh
}
#endif
#endif
#define TELETONE_MAX_DTMF_DIGITS 128
#define TELETONE_MAX_TONES 6
#define TELETONE_TONE_RANGE 127
@ -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

View 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)
{

View 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,