aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/includes
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-19 18:22:04 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-19 18:22:04 +0200
commitf8a64c9dd13d69deadff4c094d407a3bc68e221f (patch)
treed19c6bba452d5d3dfc51bb1d6f8aa16eea7431ce /src/common/includes
parentdaa4301da2981fadb6999c694754c16e5d82d781 (diff)
downloadglutte-o-matic-f8a64c9dd13d69deadff4c094d407a3bc68e221f.tar.gz
glutte-o-matic-f8a64c9dd13d69deadff4c094d407a3bc68e221f.tar.bz2
glutte-o-matic-f8a64c9dd13d69deadff4c094d407a3bc68e221f.zip
Fix simulator compilation
Diffstat (limited to 'src/common/includes')
-rw-r--r--src/common/includes/Audio/audio_in.h7
-rw-r--r--src/common/includes/Audio/tone.h4
2 files changed, 5 insertions, 6 deletions
diff --git a/src/common/includes/Audio/audio_in.h b/src/common/includes/Audio/audio_in.h
index d2e8378..97a0f29 100644
--- a/src/common/includes/Audio/audio_in.h
+++ b/src/common/includes/Audio/audio_in.h
@@ -35,7 +35,6 @@ void audio_in_initialize(void);
/* Enable or disable the audio input */
void audio_in_enable(int enable);
-// After calling this function, *buffer will point to new audio data.
-// Returns the number of times filling the internal buffer failed.
-int32_t audio_in_get_buffer(int16_t **buffer /*of length AUDIO_IN_BUF_LEN*/ );
-
+/* The audio input layer must call tone_detect_push_sample() to
+ * send the samples
+ */
diff --git a/src/common/includes/Audio/tone.h b/src/common/includes/Audio/tone.h
index 272fcb9..e88cae2 100644
--- a/src/common/includes/Audio/tone.h
+++ b/src/common/includes/Audio/tone.h
@@ -43,7 +43,7 @@ int tone_fax_status(void);
/* Must be called by task to do the analysis */
void tone_do_analysis(void);
-/* Push a sample from the ADC ISR */
-void tone_detect_push_sample_from_irq(const uint16_t sample);
+/* Push a sample from the ADC ISR or Pulseaudio task */
+void tone_detect_push_sample(const uint16_t sample, int is_irq);
#endif