dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: logarithmic volume control

Re: logarithmic volume control

From: Bjoern Fischer <bfischer_at_Techfak.Uni-Bielefeld.DE>
Date: Wed, 7 Aug 2002 14:14:35 +0200

> Hello Bjoern,

> BF> Has anyone thought about a volume control with a logarithmic or sqrt
> BF> characteristic? The volume control steps are very small within 0%-60%
> BF> and quite large, when approaching max volume. A perfect solution would
> BF> be a configurable characteristic: linear, log, sqrt, square.

> You could implement this function as a 2-dimensional array with
> precalculated values (rockbox has no floating point unit). Then it's
> easy to change the scale. I think it won't be more than 20 values per
> scale.

Exactly. The code is already there, now I just have to set up the compiling
environment (native FreeBSD). The DSP seems to have a 6 Bit value for
volume, i.e. volume can be set to 64 different values. If we provide
3 or 4 different characteristics, that every user will get his preferred
volume range with a high resolution, then 20 steps should be sufficient.

If I get that compiler stuff running, I'll post some code tonight.

Do we already have a stable API for persistent configuration parameters?

Received on 2002-08-07

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy