summaryrefslogtreecommitdiff
path: root/apps/plugins/pitch_detector.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pitch_detector.c')
-rw-r--r--apps/plugins/pitch_detector.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c
index 538e0886fa..208b146c4e 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -982,7 +982,7 @@ uint32_t ICODE_ATTR buffer_magnitude(int16_t *input)
982 982
983/* Stop the recording when the buffer is full */ 983/* Stop the recording when the buffer is full */
984#ifndef SIMULATOR 984#ifndef SIMULATOR
985int recording_callback(int status) 985void recording_callback(int status, void **start, size_t *size)
986{ 986{
987 int tail = audio_tail ^ 1; 987 int tail = audio_tail ^ 1;
988 988
@@ -991,10 +991,9 @@ int recording_callback(int status)
991 audio_tail = tail; 991 audio_tail = tail;
992 992
993 /* Always record full buffer, even if not required */ 993 /* Always record full buffer, even if not required */
994 rb->pcm_record_more(audio_data[tail], 994 *start = audio_data[tail];
995 BUFFER_SIZE * sizeof (int16_t)); 995 *size = BUFFER_SIZE * sizeof (int16_t);
996 996
997 return 0;
998 (void)status; 997 (void)status;
999} 998}
1000#endif 999#endif