audioplay: clean up, add missing code for audio/internet player functionality

* favorites handling
* auto play
* xml data/logo handling
* locales
* settings
* clean ups

taken from https://bitbucket.org/neutrino-images/ni-neutrino-hd
This commit is contained in:
2018-05-28 21:36:35 +02:00
parent 730a357368
commit 3ac8217d07
10 changed files with 163 additions and 80 deletions

View File

@@ -150,12 +150,12 @@ int CAudioPlayerSetup::showAudioPlayerSetup()
audioplayerSetup->addItem(mf);
audioplayerSetup->addItem(GenericMenuSeparatorLine);
#if 0
// internetradio autostart first entry from favorites
mc = new CMenuOptionChooser(LOCALE_INETRADIO_AUTOSTART, &g_settings.inetradio_autostart, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, NULL);
mc->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_INETRADIO_AUTOSTART);
mc->setHint("", LOCALE_MENU_HINT_INET_RADIO_AUTOSTART);
audioplayerSetup->addItem(mc);
#endif
mc = new CMenuOptionChooser(LOCALE_AUDIOPLAYER_ENABLE_SC_METADATA, &g_settings.audioplayer_enable_sc_metadata, MESSAGEBOX_NO_YES_OPTIONS, MESSAGEBOX_NO_YES_OPTION_COUNT, true);
mc->setHint("", LOCALE_MENU_HINT_AUDIOPLAYER_SC_METADATA);
audioplayerSetup->addItem(mc);