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 c30d48a025..4ae43b3236 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -952,7 +952,7 @@ static uint32_t ICODE_ATTR buffer_magnitude(int16_t *input)
952} 952}
953 953
954/* Stop the recording when the buffer is full */ 954/* Stop the recording when the buffer is full */
955static void recording_callback(int status, void **start, size_t *size) 955static void recording_callback(void **start, size_t *size)
956{ 956{
957 int tail = audio_tail ^ 1; 957 int tail = audio_tail ^ 1;
958 958
@@ -963,8 +963,6 @@ static void recording_callback(int status, void **start, size_t *size)
963 /* Always record full buffer, even if not required */ 963 /* Always record full buffer, even if not required */
964 *start = audio_data[tail]; 964 *start = audio_data[tail];
965 *size = BUFFER_SIZE * sizeof (int16_t); 965 *size = BUFFER_SIZE * sizeof (int16_t);
966
967 (void)status;
968} 966}
969#endif /* SIMULATOR */ 967#endif /* SIMULATOR */
970 968
@@ -973,7 +971,8 @@ static void record_data(void)
973{ 971{
974#ifndef SIMULATOR 972#ifndef SIMULATOR
975 /* Always record full buffer, even if not required */ 973 /* Always record full buffer, even if not required */
976 rb->pcm_record_data(recording_callback, audio_data[audio_tail], 974 rb->pcm_record_data(recording_callback, NULL,
975 audio_data[audio_tail],
977 BUFFER_SIZE * sizeof (int16_t)); 976 BUFFER_SIZE * sizeof (int16_t));
978#endif 977#endif
979} 978}