diff options
Diffstat (limited to 'apps/plugins/oscilloscope.c')
-rw-r--r-- | apps/plugins/oscilloscope.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index a4be0fbd8e..0bf951f069 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c | |||
@@ -881,8 +881,10 @@ enum plugin_status plugin_start(const void* parameter) | |||
881 | left = rb->mas_codec_readreg(0xC); | 881 | left = rb->mas_codec_readreg(0xC); |
882 | right = rb->mas_codec_readreg(0xD); | 882 | right = rb->mas_codec_readreg(0xD); |
883 | #elif (CONFIG_CODEC == SWCODEC) | 883 | #elif (CONFIG_CODEC == SWCODEC) |
884 | static struct pcm_peaks peaks; | ||
884 | rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK, | 885 | rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK, |
885 | &left, &right); | 886 | &peaks); |
887 | left = peaks.left; right = peaks.right; | ||
886 | #endif | 888 | #endif |
887 | if (osc.orientation == OSC_HORIZ) | 889 | if (osc.orientation == OSC_HORIZ) |
888 | anim_horizontal(left, right); | 890 | anim_horizontal(left, right); |