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/codecs.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/codecs.h')
-rw-r--r-- | apps/codecs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index 4a4ccb229c..47cd5711ae 100644 --- a/apps/codecs.h +++ b/apps/codecs.h | |||
@@ -79,12 +79,12 @@ | |||
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | /* increase this every time the api struct changes */ | 81 | /* increase this every time the api struct changes */ |
82 | #define CODEC_API_VERSION 41 | 82 | #define CODEC_API_VERSION 42 |
83 | 83 | ||
84 | /* update this to latest version if a change to the api struct breaks | 84 | /* update this to latest version if a change to the api struct breaks |
85 | backwards compatibility (and please take the opportunity to sort in any | 85 | backwards compatibility (and please take the opportunity to sort in any |
86 | new function which are "waiting" at the end of the function table) */ | 86 | new function which are "waiting" at the end of the function table) */ |
87 | #define CODEC_MIN_API_VERSION 40 | 87 | #define CODEC_MIN_API_VERSION 42 |
88 | 88 | ||
89 | /* codec return codes */ | 89 | /* codec return codes */ |
90 | enum codec_status { | 90 | enum codec_status { |
@@ -314,8 +314,8 @@ struct codec_api { | |||
314 | #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) | 314 | #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) |
315 | unsigned short (*peak_meter_scale_value)(unsigned short val, | 315 | unsigned short (*peak_meter_scale_value)(unsigned short val, |
316 | int meterwidth); | 316 | int meterwidth); |
317 | void (*peak_meter_set_use_dbfs)(int use); | 317 | void (*peak_meter_set_use_dbfs)(bool use); |
318 | int (*peak_meter_get_use_dbfs)(void); | 318 | bool (*peak_meter_get_use_dbfs)(void); |
319 | #endif | 319 | #endif |
320 | 320 | ||
321 | /* new stuff at the end, sort into place next time | 321 | /* new stuff at the end, sort into place next time |