pitch_detector: Use continuous recording, even if the algorithm is too slow for that...
commitb3665fe891577bb3f922aa9b8aeaeb4476177439
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Fri, 14 May 2010 06:25:40 +0000 (14 06:25 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Fri, 14 May 2010 06:25:40 +0000 (14 06:25 +0000)
treecd29e1b5ea7e621a7389daf0ece3d320b21976b8
parent402979d0facd1aab2cb26991ccca97ce00382143
pitch_detector: Use continuous recording, even if the algorithm is too slow for that and record a whole buffer even if the min frequency is higher. Use the minimum samplerate that allows C-4186 to be detected (usually 11.025kHz, which can reduce computational load to 1/16 compared to 44.1kHz). Get rid of 64-bit multiplies when calculating input RMS value. Stop audio playback when entering plugin. Better backlight and CPU frequency handling. audio_sample_type->int16_t. simpler buffer size rounding.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26005 a1c6a512-1295-4272-9138-f99709370657
apps/plugin.c
apps/plugin.h
apps/plugins/pitch_detector.c