diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/pitch_detector.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c index 92ba6e53ac..5def8a16a4 100644 --- a/apps/plugins/pitch_detector.c +++ b/apps/plugins/pitch_detector.c | |||
@@ -851,7 +851,7 @@ static fixed ICODE_ATTR vec_quadint_min(fixed *x, unsigned bufsize, unsigned pos | |||
851 | return exactpos; | 851 | return exactpos; |
852 | } | 852 | } |
853 | 853 | ||
854 | 854 | #ifndef SIMULATOR | |
855 | /* Calculate the period of the note in the | 855 | /* Calculate the period of the note in the |
856 | buffer using the YIN algorithm */ | 856 | buffer using the YIN algorithm */ |
857 | /* The yin pointer is just a buffer that the algorithm uses as a work | 857 | /* The yin pointer is just a buffer that the algorithm uses as a work |
@@ -918,7 +918,6 @@ static uint32_t ICODE_ATTR buffer_magnitude(int16_t *input) | |||
918 | } | 918 | } |
919 | 919 | ||
920 | /* Stop the recording when the buffer is full */ | 920 | /* Stop the recording when the buffer is full */ |
921 | #ifndef SIMULATOR | ||
922 | static void recording_callback(int status, void **start, size_t *size) | 921 | static void recording_callback(int status, void **start, size_t *size) |
923 | { | 922 | { |
924 | int tail = audio_tail ^ 1; | 923 | int tail = audio_tail ^ 1; |
@@ -933,7 +932,7 @@ static void recording_callback(int status, void **start, size_t *size) | |||
933 | 932 | ||
934 | (void)status; | 933 | (void)status; |
935 | } | 934 | } |
936 | #endif | 935 | #endif /* SIMULATOR */ |
937 | 936 | ||
938 | /* Start recording */ | 937 | /* Start recording */ |
939 | static void record_data(void) | 938 | static void record_data(void) |