pitch_detector: Use continuous recording, even if the algorithm is too slow for that...
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Fri, 14 May 2010 06:25:40 +0000 (06:25 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Fri, 14 May 2010 06:25:40 +0000 (06:25 +0000)
commit8d0dd7d9e8161a5cd56ce11a02e120069b4f3421
treecd29e1b5ea7e621a7389daf0ece3d320b21976b8
parent1692cd8c8f9251df0abbc8f6baf33732ca92333f
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