diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-14 06:25:40 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-14 06:25:40 +0000 |
| commit | 7250405c70a0d2fe8468c225f1e89840266e65c1 (patch) | |
| tree | cd29e1b5ea7e621a7389daf0ece3d320b21976b8 /apps/plugin.c | |
| parent | 0b52d34313b90f42412691f749b03448754f915b (diff) | |
| download | rockbox-7250405c70a0d2fe8468c225f1e89840266e65c1.zip rockbox-7250405c70a0d2fe8468c225f1e89840266e65c1.tar.gz rockbox-7250405c70a0d2fe8468c225f1e89840266e65c1.tar.bz2 rockbox-7250405c70a0d2fe8468c225f1e89840266e65c1.tar.xz | |
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
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index e4480de..a1a68af 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -713,6 +713,12 @@ static const struct plugin_api rockbox_api = { #ifdef HAVE_LCD_BITMAP is_diacritic, #endif + +#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_RECORDING) && \ + (defined(HAVE_LINE_IN) || defined(HAVE_MIC_IN)) + round_value_to_list32, +#endif + }; int plugin_load(const char* plugin, const void* parameter) |