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

Rockbox mail archive

Subject: [PATCH] Auto Volume Correction

[PATCH] Auto Volume Correction

From: Heikki Hannikainen <>
Date: Tue, 23 Jul 2002 13:28:33 +0300 (EEST)


  This patch against the current CVS code enables AVC, the Auto Volume
Correction on the Recorder's codec. It allows selection of 2s, 4s or 8s
decay time (the chip also has a 20ms decay time but it's only of use after
the track changed). Nice pumping effect for those who like it.

  TODO item: if the code could figure out exactly when a new track is
starting to play, it could call mpeg_sound_set(SOUND_AVC, -1) to reset the
AVC internal variables and get a quick decay to the new volume level.

  There is one known downside, the setting is applied only after the
setting has been changed and going back to the sound settings menu, not
when the setting is changed, unlike the other sound settings which apply
immediately. This is because I used set_option to get the decay time
selection, and set_option does not call mpeg_sound_set like set_sound

  - Hessu

Received on 2002-07-23

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