summaryrefslogtreecommitdiff
path: root/apps/plugins/vu_meter.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-07-02 11:55:38 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-07-02 11:55:38 +0000
commit22b6def065ab7c2ca030f405577e34104ad20011 (patch)
tree6be548bf591d2365077b74679048737fe51792a2 /apps/plugins/vu_meter.c
parent8c954e28b75b47543f69abe2c169d83ad38c26ae (diff)
downloadrockbox-22b6def065ab7c2ca030f405577e34104ad20011.tar.gz
rockbox-22b6def065ab7c2ca030f405577e34104ad20011.zip
Use playback channel directly for peakmeters and plugins using peak calculation. Also, for now, don't allow mixer playback to overlap recording, even if full duplex works.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30119 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/vu_meter.c')
-rw-r--r--apps/plugins/vu_meter.c3
1 files changed, 2 insertions, 1 deletions
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) {