diff options
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 @@ | |||
469 | #endif | 469 | #endif |
470 | #endif | 470 | #endif |
471 | 471 | ||
472 | #if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) | ||
473 | #define mas_codec_readreg(x) rand()%MAX_PEAK | ||
474 | #endif | ||
475 | |||
476 | /* Defines x positions on a logarithmic (dBfs) scale. */ | 472 | /* Defines x positions on a logarithmic (dBfs) scale. */ |
477 | unsigned char analog_db_scale[LCD_WIDTH/2]; | 473 | unsigned char analog_db_scale[LCD_WIDTH/2]; |
478 | 474 | ||
@@ -780,13 +776,11 @@ static void draw_digital_minimeters(void) { | |||
780 | 776 | ||
781 | static void analog_meter(void) { | 777 | static void analog_meter(void) { |
782 | 778 | ||
783 | #if (CONFIG_CODEC == SWCODEC) | ||
784 | static struct pcm_peaks peaks; | 779 | static struct pcm_peaks peaks; |
785 | rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK, | 780 | rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK, |
786 | &peaks); | 781 | &peaks); |
787 | #define left_peak peaks.left | 782 | #define left_peak peaks.left |
788 | #define right_peak peaks.right | 783 | #define right_peak peaks.right |
789 | #endif | ||
790 | 784 | ||
791 | if(vumeter_settings.analog_use_db_scale) { | 785 | if(vumeter_settings.analog_use_db_scale) { |
792 | left_needle_top_x = analog_db_scale[left_peak * half_width / MAX_PEAK]; | 786 | left_needle_top_x = analog_db_scale[left_peak * half_width / MAX_PEAK]; |
@@ -837,13 +831,11 @@ static void analog_meter(void) { | |||
837 | } | 831 | } |
838 | 832 | ||
839 | static void digital_meter(void) { | 833 | static void digital_meter(void) { |
840 | #if (CONFIG_CODEC == SWCODEC) | ||
841 | static struct pcm_peaks peaks; | 834 | static struct pcm_peaks peaks; |
842 | rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK, | 835 | rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK, |
843 | &peaks); | 836 | &peaks); |
844 | #define left_peak peaks.left | 837 | #define left_peak peaks.left |
845 | #define right_peak peaks.right | 838 | #define right_peak peaks.right |
846 | #endif | ||
847 | 839 | ||
848 | if(vumeter_settings.digital_use_db_scale) { | 840 | if(vumeter_settings.digital_use_db_scale) { |
849 | num_left_leds = digital_db_scale[left_peak * 44 / MAX_PEAK]; | 841 | num_left_leds = digital_db_scale[left_peak * 44 / MAX_PEAK]; |