summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/oscilloscope.c3
-rw-r--r--apps/plugins/starfield.c3
-rw-r--r--apps/plugins/vu_meter.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c
index 07bf1da8bb..5eb43fae62 100644
--- a/apps/plugins/oscilloscope.c
+++ b/apps/plugins/oscilloscope.c
@@ -826,7 +826,8 @@ enum plugin_status plugin_start(const void* parameter)
826 left = rb->mas_codec_readreg(0xC); 826 left = rb->mas_codec_readreg(0xC);
827 right = rb->mas_codec_readreg(0xD); 827 right = rb->mas_codec_readreg(0xD);
828#elif (CONFIG_CODEC == SWCODEC) 828#elif (CONFIG_CODEC == SWCODEC)
829 rb->pcm_calculate_peaks(&left, &right); 829 rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK,
830 &left, &right);
830#endif 831#endif
831 if (osc.orientation == OSC_HORIZ) 832 if (osc.orientation == OSC_HORIZ)
832 anim_horizontal(left, right); 833 anim_horizontal(left, right);
diff --git a/apps/plugins/starfield.c b/apps/plugins/starfield.c
index 5e832aa38a..e7bbb425be 100644
--- a/apps/plugins/starfield.c
+++ b/apps/plugins/starfield.c
@@ -422,7 +422,8 @@ int plugin_main(void)
422 /* Get the peaks. ( Borrowed from vu_meter ) */ 422 /* Get the peaks. ( Borrowed from vu_meter ) */
423#if (CONFIG_CODEC == SWCODEC) 423#if (CONFIG_CODEC == SWCODEC)
424 int left_peak, right_peak; 424 int left_peak, right_peak;
425 rb->pcm_calculate_peaks(&left_peak, &right_peak); 425 rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK,
426 &left_peak, &right_peak);
426#else 427#else
427 int left_peak = rb->mas_codec_readreg(0xC); 428 int left_peak = rb->mas_codec_readreg(0xC);
428 int right_peak = rb->mas_codec_readreg(0xD); 429 int right_peak = rb->mas_codec_readreg(0xD);
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c
index 5266214723..cb1a035678 100644
--- a/apps/plugins/vu_meter.c
+++ b/apps/plugins/vu_meter.c
@@ -660,7 +660,8 @@ void analog_meter(void) {
660 int right_peak = rb->mas_codec_readreg(0xD); 660 int right_peak = rb->mas_codec_readreg(0xD);
661#elif (CONFIG_CODEC == SWCODEC) 661#elif (CONFIG_CODEC == SWCODEC)
662 int left_peak, right_peak; 662 int left_peak, right_peak;
663 rb->pcm_calculate_peaks(&left_peak, &right_peak); 663 rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK,
664 &left_peak, &right_peak);
664#endif 665#endif
665 666
666 if(vumeter_settings.analog_use_db_scale) { 667 if(vumeter_settings.analog_use_db_scale) {