Backport r26446 - Perform radio_start, radio_pause, radio_stop in simulator.

git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_6@26447 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Chicoine 2010-06-01 14:31:03 +00:00
parent 4d06fd9fe1
commit 45a197b2c8

View file

@ -135,6 +135,15 @@ void audio_set_input_source(int source, unsigned flags)
{
(void)source;
(void)flags;
#if CONFIG_TUNER
/* Switch radio off or on per source and flags. */
if (source != AUDIO_SRC_FMRADIO)
radio_stop();
else if (flags & SRCF_FMRADIO_PAUSED)
radio_pause();
else
radio_start();
#endif
} /* audio_set_input_source */
#ifdef HAVE_SPDIF_IN