From 0f5cb94aa4a334366a746fcbb22f3335ca413265 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 6 Nov 2006 18:07:30 +0000 Subject: Big Patch adds primarily: Samplerate and format selection to recording for SWCODEC. Supprort for samplerates changing in playback (just goes with the recording part inseparably). Samplerates to all encoders. Encoders can be configured individually on a menu specific to the encoder in the recording menu. File creation is delayed until flush time to reduce spinups when splitting. Misc: statusbar icons for numbers are individual digits to display any number. Audio buffer was rearranged to maximize memory available to recording and properly reinitialized when trashed. ColdFire PCM stuff moved to target tree to avoid a complicated mess when adding samplerate switching. Some needed API changes and to neaten up growing gap between hardware and software codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11452 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/peakmeter.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/recorder/peakmeter.c') diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 0370f4deea..44be43124a 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c @@ -540,10 +540,8 @@ void peak_meter_peek(void) if (pm_playback) pcm_calculate_peaks(&pm_cur_left, &pm_cur_right); #ifdef HAVE_RECORDING - if (!pm_playback) - { - pcm_rec_get_peaks(&pm_cur_left, &pm_cur_right); - } + else + pcm_calculate_rec_peaks(&pm_cur_left, &pm_cur_right); #endif left = pm_cur_left; right = pm_cur_right; -- cgit v1.2.3