From 99a0598c284471342fcda1fdcba90d4b666bfbb3 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 29 Aug 2005 20:07:17 +0000 Subject: 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 --- apps/codecs.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/codecs.h') 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 @@ #endif /* increase this every time the api struct changes */ -#define CODEC_API_VERSION 41 +#define CODEC_API_VERSION 42 /* update this to latest version if a change to the api struct breaks - backwards compatibility (and please take the opportunity to sort in any + backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define CODEC_MIN_API_VERSION 40 +#define CODEC_MIN_API_VERSION 42 /* codec return codes */ enum codec_status { @@ -314,8 +314,8 @@ struct codec_api { #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) unsigned short (*peak_meter_scale_value)(unsigned short val, int meterwidth); - void (*peak_meter_set_use_dbfs)(int use); - int (*peak_meter_get_use_dbfs)(void); + void (*peak_meter_set_use_dbfs)(bool use); + bool (*peak_meter_get_use_dbfs)(void); #endif /* new stuff at the end, sort into place next time -- cgit v1.2.3