Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: berzerk peak meter? Alpha testers wanted.
From: Philipp Pertermann (philipp.pertermann_at_web.de)
Date: 2002-09-24


From: "Nielsen Linus (ext)"

> > void generate_log2_table (void)
> > {
> > int i;
> > for(i=0;i<16;i++)
> > log2_table[i]=(unsigned
> > short)(65536.0*log(1.0+(((double)i)/16.0))/log(2.0));
> > }
>
> Floating point? No no no!!! Not in this firmware!

Don't worry: thats only for generating the table values. We
will calculate them offline and put them into an unsigned
short array of constants.

Paul: Thank you very much. I'll try this.

Phil



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa