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.h | |
| 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.h')
| -rw-r--r-- | apps/plugin.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index e6e41e1..26d17a2 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -142,7 +142,7 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 183 +#define PLUGIN_API_VERSION 184 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -874,6 +874,14 @@ struct plugin_api { #ifdef HAVE_LCD_BITMAP bool (*is_diacritic)(const unsigned short char_code, bool *is_rtl); #endif + +#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_RECORDING) && \ + (defined(HAVE_LINE_IN) || defined(HAVE_MIC_IN)) +int (*round_value_to_list32)(unsigned long value, + const unsigned long list[], + int count, + bool signd); +#endif }; /* plugin header */ |