diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-08-29 20:07:17 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-08-29 20:07:17 +0000 |
commit | 99a0598c284471342fcda1fdcba90d4b666bfbb3 (patch) | |
tree | 83cc502095e87277de770456498d2de6cf8f473b /apps/plugin.h | |
parent | 89a8ca4408c3ea34464898b0ce52a0d8351fa323 (diff) | |
download | rockbox-99a0598c284471342fcda1fdcba90d4b666bfbb3.tar.gz rockbox-99a0598c284471342fcda1fdcba90d4b666bfbb3.zip |
Major peakmeter rework: * Changed set/get functions for dbfs mode to bool type. * Removed performance setting, leaving (slightly adapted) high performance mode only. * Refresh rate is always 20 Hz now. * Readout doesn't do an extra (hidden) peek, should allow for slightly better clip detection. * Brought back high performance peakmeter for recording. Peakmeter stops hogging the CPU when the disk is spinning; this is enough to avoid the performance problem when saving data. * Optimisations, code cleanup and code policeing. * (iriver) Reduced CPU load of peakmeter by not calculating excessive overlaps. ** Bumped config block version, so save your settings before upgrading.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7415 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 7cda354808..8760162405 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -88,12 +88,12 @@ | |||
88 | #endif | 88 | #endif |
89 | 89 | ||
90 | /* increase this every time the api struct changes */ | 90 | /* increase this every time the api struct changes */ |
91 | #define PLUGIN_API_VERSION 47 | 91 | #define PLUGIN_API_VERSION 48 |
92 | 92 | ||
93 | /* update this to latest version if a change to the api struct breaks | 93 | /* update this to latest version if a change to the api struct breaks |
94 | backwards compatibility (and please take the opportunity to sort in any | 94 | backwards compatibility (and please take the opportunity to sort in any |
95 | new function which are "waiting" at the end of the function table) */ | 95 | new function which are "waiting" at the end of the function table) */ |
96 | #define PLUGIN_MIN_API_VERSION 47 | 96 | #define PLUGIN_MIN_API_VERSION 48 |
97 | 97 | ||
98 | /* plugin return codes */ | 98 | /* plugin return codes */ |
99 | enum plugin_status { | 99 | enum plugin_status { |
@@ -413,8 +413,8 @@ struct plugin_api { | |||
413 | #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) | 413 | #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) |
414 | unsigned short (*peak_meter_scale_value)(unsigned short val, | 414 | unsigned short (*peak_meter_scale_value)(unsigned short val, |
415 | int meterwidth); | 415 | int meterwidth); |
416 | void (*peak_meter_set_use_dbfs)(int use); | 416 | void (*peak_meter_set_use_dbfs)(bool use); |
417 | int (*peak_meter_get_use_dbfs)(void); | 417 | bool (*peak_meter_get_use_dbfs)(void); |
418 | #endif | 418 | #endif |
419 | #ifdef HAVE_LCD_BITMAP | 419 | #ifdef HAVE_LCD_BITMAP |
420 | int (*read_bmp_file)(char* filename, int *get_width, int *get_height, | 420 | int (*read_bmp_file)(char* filename, int *get_width, int *get_height, |