diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-07-02 11:55:38 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-07-02 11:55:38 +0000 |
commit | 22b6def065ab7c2ca030f405577e34104ad20011 (patch) | |
tree | 6be548bf591d2365077b74679048737fe51792a2 /apps/plugins/oscilloscope.c | |
parent | 8c954e28b75b47543f69abe2c169d83ad38c26ae (diff) | |
download | rockbox-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/oscilloscope.c')
-rw-r--r-- | apps/plugins/oscilloscope.c | 3 |
1 files changed, 2 insertions, 1 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); |