aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/includes/Audio
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-10 09:30:06 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-10 09:30:06 +0200
commitd0c10808d2908e2fada3bc13ab5a47260297c74b (patch)
tree925ddfdad385c7aaf9f65f30fa212bd5f66c6ef4 /src/common/includes/Audio
parentb5191a8c7c1764a2a8663775d1c45d25e356e12f (diff)
downloadglutte-o-matic-d0c10808d2908e2fada3bc13ab5a47260297c74b.tar.gz
glutte-o-matic-d0c10808d2908e2fada3bc13ab5a47260297c74b.tar.bz2
glutte-o-matic-d0c10808d2908e2fada3bc13ab5a47260297c74b.zip
Implement 5s 1750 to disable FAX
Diffstat (limited to 'src/common/includes/Audio')
-rw-r--r--src/common/includes/Audio/tone.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/includes/Audio/tone.h b/src/common/includes/Audio/tone.h
index e88cae2..ba05304 100644
--- a/src/common/includes/Audio/tone.h
+++ b/src/common/includes/Audio/tone.h
@@ -37,6 +37,10 @@ void tone_detector_enable(int enable);
/* Return 1 when 1750 detected, 0 otherwise */
int tone_1750_status(void);
+/* Return 1 if 1750 is currently detected, and has been already for at
+ * least 5s */
+int tone_1750_for_5_seconds(void);
+
/* The FAX status is 1 if the recently decoded DTMF is the 0-7-* sequence. */
int tone_fax_status(void);