diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-17 00:01:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 8cb555460ff79e636a7907fb2589e16db98c8600 (patch) | |
tree | 930a3878c7641c9ce045b24f0ade1309e36d5806 /apps/plugins/vu_meter.c | |
parent | 0c4f89370d05056faa789aa9cabcccc4e509fb9f (diff) | |
download | rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.tar.gz rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.tar.bz2 rockbox-8cb555460ff79e636a7907fb2589e16db98c8600.zip |
[3/4] Completely remove HWCODEC support
'swcodec' is now always set (and recording_swcodec for recording-capable
units) in feature.txt so the manual and language strings don't need to
all be fixed up.
Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0
Diffstat (limited to 'apps/plugins/vu_meter.c')
-rw-r--r-- | apps/plugins/vu_meter.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c index a4d639ede6..d2ba8c992c 100644 --- a/apps/plugins/vu_meter.c +++ b/apps/plugins/vu_meter.c @@ -469,10 +469,6 @@ #endif #endif -#if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) -#define mas_codec_readreg(x) rand()%MAX_PEAK -#endif - /* Defines x positions on a logarithmic (dBfs) scale. */ unsigned char analog_db_scale[LCD_WIDTH/2]; @@ -780,13 +776,11 @@ static void draw_digital_minimeters(void) { static void analog_meter(void) { -#if (CONFIG_CODEC == SWCODEC) static struct pcm_peaks peaks; rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK, &peaks); #define left_peak peaks.left #define right_peak peaks.right -#endif if(vumeter_settings.analog_use_db_scale) { left_needle_top_x = analog_db_scale[left_peak * half_width / MAX_PEAK]; @@ -837,13 +831,11 @@ static void analog_meter(void) { } static void digital_meter(void) { -#if (CONFIG_CODEC == SWCODEC) static struct pcm_peaks peaks; rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK, &peaks); #define left_peak peaks.left #define right_peak peaks.right -#endif if(vumeter_settings.digital_use_db_scale) { num_left_leds = digital_db_scale[left_peak * 44 / MAX_PEAK]; |