summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 19:07:38 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 19:07:38 +0000
commit0bdd362ab97bc5f7a0690cbe6ff7de03d93247fb (patch)
tree24b72d8adbc516bc932689465d5a715f317c56f3
parente09ebc421353c8717d49080443a531d17557a548 (diff)
downloadrockbox-0bdd362ab97bc5f7a0690cbe6ff7de03d93247fb.tar.gz
rockbox-0bdd362ab97bc5f7a0690cbe6ff7de03d93247fb.zip
pitch detector: remove unused functions for sim builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27919 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/pitch_detector.c5
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
return exactpos;
}
-
+#ifndef SIMULATOR
/* Calculate the period of the note in the
buffer using the YIN algorithm */
/* 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)
}
/* Stop the recording when the buffer is full */
-#ifndef SIMULATOR
static void recording_callback(int status, void **start, size_t *size)
{
int tail = audio_tail ^ 1;
@@ -933,7 +932,7 @@ static void recording_callback(int status, void **start, size_t *size)
(void)status;
}
-#endif
+#endif /* SIMULATOR */
/* Start recording */
static void record_data(void)