diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-06-17 18:56:15 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-06-17 18:56:15 +0200 |
commit | 76f58c6eb4991d3f8c9648d0dc8a57e496f01d5a (patch) | |
tree | c100d1acf0511367111fbcf9b7d465500474afff /src/common/includes | |
parent | 7b25d27d064b561cd8f3b72e25f61102241991f8 (diff) | |
download | glutte-o-matic-76f58c6eb4991d3f8c9648d0dc8a57e496f01d5a.tar.gz glutte-o-matic-76f58c6eb4991d3f8c9648d0dc8a57e496f01d5a.tar.bz2 glutte-o-matic-76f58c6eb4991d3f8c9648d0dc8a57e496f01d5a.zip |
Add tone-test-sim
Diffstat (limited to 'src/common/includes')
-rw-r--r-- | src/common/includes/Audio/tone.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/common/includes/Audio/tone.h b/src/common/includes/Audio/tone.h index 1398ca5..0e80228 100644 --- a/src/common/includes/Audio/tone.h +++ b/src/common/includes/Audio/tone.h @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2018 Maximilien Cuony + * Copyright (c) 2018 Matthias P. Braendli, Maximilien Cuony * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -37,16 +37,11 @@ struct tone_detector { float Q1; float Q2; float threshold; -}; - -static struct tone_detector detector_1750; - -void init_tones(void); -void init_tone(struct tone_detector* detector, int freq, int threshold); -void detect_tones(int16_t * buffer); - -int TONE_1750_DETECTED = 0; + int num_samples_analysed; +}; +void tone_init(int threshold); +int tone_detect_1750(int16_t sample); #endif |