mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
plugins: Oscilloscope: Fix outdated mixer frequency
When Waveform mode was active, frequency changes during playback (if set to "auto", or with USB audio active) weren't picked up Change-Id: Iebec7db951312b7dacff850e9554e1d06762ab3a
This commit is contained in:
parent
10808f5dfe
commit
f2be592215
1 changed files with 4 additions and 4 deletions
|
|
@ -2000,10 +2000,6 @@ static void osc_setup(void)
|
|||
osd_lcd_update();
|
||||
#endif
|
||||
|
||||
#ifdef OSCILLOSCOPE_GRAPHMODE
|
||||
mixer_sampr = rb->mixer_get_frequency();
|
||||
#endif
|
||||
|
||||
/* Turn off backlight timeout */
|
||||
backlight_ignore_timeout();
|
||||
|
||||
|
|
@ -2038,6 +2034,10 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
|
||||
while (!exit)
|
||||
{
|
||||
#ifdef OSCILLOSCOPE_GRAPHMODE
|
||||
if (osc.graphmode == GRAPH_WAVEFORM)
|
||||
mixer_sampr = rb->mixer_get_frequency();
|
||||
#endif
|
||||
#ifdef USB_ENABLE_AUDIO
|
||||
if (rb->usb_audio_get_playing())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue