aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/dtmf.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-01-29 07:25:12 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2017-02-18 21:01:13 +0100
commit7e45f556cec493c3c77fcb6400d8ae211faf2220 (patch)
treecb5903509228c36e7dcd52ae0a049b380e81f401 /src/common/dtmf.h
parentbd7ccc5fa05587606757adbacb6e1bf12f12fd2c (diff)
Correcting all levels and move all remaining integer samples to sample_t
The leves are based on the standards of each mobile network. They are adjusted to the specified frequency deviation now.
Diffstat (limited to 'src/common/dtmf.h')
-rw-r--r--src/common/dtmf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/dtmf.h b/src/common/dtmf.h
index 477affd..d6a5322 100644
--- a/src/common/dtmf.h
+++ b/src/common/dtmf.h
@@ -4,8 +4,8 @@ typedef struct dtmf {
char tone; /* current tone to be played */
int pos; /* sample counter for tone */
int max; /* max number of samples for tone duration */
- double phaseshift256[2]; /* how much the phase of sine wave changes per sample */
- double phase256[2]; /* current phase */
+ double phaseshift65536[2]; /* how much the phase of sine wave changes per sample */
+ double phase65536[2]; /* current phase */
} dtmf_t;
void dtmf_init(dtmf_t *dtmf, int samplerate);