Reset recording clipping indicators when changing gain. Solves FS #6147

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16557 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Peter D'Hoye 2008-03-08 17:43:04 +00:00
parent 8a2a474ba0
commit 30ab1a3c0e

View file

@ -281,6 +281,10 @@ static void set_gain(void)
global_settings.rec_right_gain, global_settings.rec_right_gain,
AUDIO_GAIN_LINEIN); AUDIO_GAIN_LINEIN);
} }
/* reset the clipping indicators:
use -1 to clear them, then call again with settings value */
peak_meter_set_clip_hold(-1);
peak_meter_set_clip_hold(global_settings.peak_meter_clip_hold);
} }
#ifdef HAVE_AGC #ifdef HAVE_AGC