mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
plugins: starfield: enable USB audio
forgot about this... Change-Id: Ib9d1451785390f1fabcaab679271510e76f9e330
This commit is contained in:
parent
2398616d63
commit
16cf7f5d8b
2 changed files with 7 additions and 0 deletions
|
|
@ -235,6 +235,12 @@ static int plugin_main(void)
|
||||||
|
|
||||||
/* Get the peaks. ( Borrowed from vu_meter ) */
|
/* Get the peaks. ( Borrowed from vu_meter ) */
|
||||||
static struct pcm_peaks peaks;
|
static struct pcm_peaks peaks;
|
||||||
|
#ifdef USB_ENABLE_AUDIO
|
||||||
|
if (rb->usb_audio_get_playing())
|
||||||
|
rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_USBAUDIO,
|
||||||
|
&peaks);
|
||||||
|
else
|
||||||
|
#endif
|
||||||
rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK,
|
rb->mixer_channel_calculate_peaks(PCM_MIXER_CHAN_PLAYBACK,
|
||||||
&peaks);
|
&peaks);
|
||||||
#define left_peak peaks.left
|
#define left_peak peaks.left
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
\subsection{Starfield}
|
\subsection{Starfield}
|
||||||
\screenshot{plugins/images/ss-starfield}{Starfield}{img:starfield}
|
\screenshot{plugins/images/ss-starfield}{Starfield}{img:starfield}
|
||||||
Starfield simulation (like the classic screensaver).
|
Starfield simulation (like the classic screensaver).
|
||||||
|
Speed reacts to playing audio, or can be manually adjusted.
|
||||||
|
|
||||||
\begin{btnmap}
|
\begin{btnmap}
|
||||||
\PluginRight{} / \PluginLeft
|
\PluginRight{} / \PluginLeft
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue