FS#5022 - Better accuracy for peak-meter

Attached to Project: Rockbox
Opened by Jvo Studer (vinylivo) - Tuesday, 04 April 2006, 11:14 GMT
Task Type Patches
Category Operating System/Drivers
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This patch modifies the 'calc_db' function for better accuracy, less than 0.2dB error in important -12dB to 0dB range.

The pm_error.png graphic shows the error values. The red trace is the original difference between exact and claculated dB value. The green trace is for the improved accuracy calc_db function.
This task depends upon

Closed by  Peter D'Hoye (petur)
Sunday, 02 July 2006, 22:37 GMT
Reason for closing:  Accepted
Comment by Brandon Low (lostlogic) - Wednesday, 05 April 2006, 14:08 GMT
Does this change peak meter speed at all?
Comment by Jvo Studer (vinylivo) - Saturday, 08 April 2006, 17:32 GMT
no unless for very small peak levels (24 or -62dB) there is one more if-else decision.
but first low level calls are very seldom and I doubt that this has an impact on speed.

new patch removes long path so u can use -p1 for patching.