audioplayer: allow to load radio-favorites.xml via menu

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6a3fa8c4e7
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-28 (Wed, 28 Jun 2017)

Origin message was:
------------------
- audioplayer: allow to load radio-favorites.xml via menu

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-06-28 16:26:36 +02:00
parent a07fbc0cd6
commit 0c585b0d70
5 changed files with 17 additions and 2 deletions

View File

@@ -155,6 +155,7 @@ audiomenu.volume_adjustment_pcm PCM-Tonspuren
audiomenu.volume_start Einschaltlautstärke
audiomenu.volume_step Lautstärke Schrittweite
audioplayer.add Hinzufügen
audioplayer.add_fav Lokale Radiofavoriten
audioplayer.add_ic Icecast
audioplayer.add_loc Lokale Radioliste
audioplayer.add_sc SHOUTcast

View File

@@ -155,6 +155,7 @@ audiomenu.volume_adjustment_pcm PCM streams
audiomenu.volume_start Start volume
audiomenu.volume_step Volume step
audioplayer.add Add
audioplayer.add_fav Local radio favorites
audioplayer.add_ic Icecast
audioplayer.add_loc Local radio list
audioplayer.add_sc SHOUTcast

View File

@@ -708,6 +708,10 @@ int CAudioPlayerGui::show()
CMenuSelectorTarget *InetRadioInputChanger = new CMenuSelectorTarget(&select);
// -- setup menue for inetradio input
sprintf(cnt, "%d", count);
InputSelector.addItem(new CMenuForwarder(
LOCALE_AUDIOPLAYER_ADD_FAV, true, NULL, InetRadioInputChanger,
cnt, CRCInput::convertDigitToKey(count + 1)), old_select == count);
sprintf(cnt, "%d", ++count);
InputSelector.addItem(new CMenuForwarder(
LOCALE_AUDIOPLAYER_ADD_LOC, true, NULL, InetRadioInputChanger,
cnt, CRCInput::convertDigitToKey(count + 1)), old_select == count);
@@ -731,21 +735,28 @@ int CAudioPlayerGui::show()
switch (select)
{
case 0:
scanXmlFile(RADIO_STATION_XML_FILE);
scanXmlFile(RADIO_FAVORITES_XML_FILE);
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
paintLCD();
break;
case 1:
readDir_ic();
scanXmlFile(RADIO_STATION_XML_FILE);
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
paintLCD();
break;
case 2:
readDir_ic();
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
paintLCD();
break;
case 3:
openSCbrowser();
break;
default:
break;
}
m_current = 0;
m_selected = 0;
update=true;
}
else if (shufflePlaylist())

View File

@@ -182,6 +182,7 @@ typedef enum
LOCALE_AUDIOMENU_VOLUME_START,
LOCALE_AUDIOMENU_VOLUME_STEP,
LOCALE_AUDIOPLAYER_ADD,
LOCALE_AUDIOPLAYER_ADD_FAV,
LOCALE_AUDIOPLAYER_ADD_IC,
LOCALE_AUDIOPLAYER_ADD_LOC,
LOCALE_AUDIOPLAYER_ADD_SC,

View File

@@ -182,6 +182,7 @@ const char * locale_real_names[] =
"audiomenu.volume_start",
"audiomenu.volume_step",
"audioplayer.add",
"audioplayer.add_fav",
"audioplayer.add_ic",
"audioplayer.add_loc",
"audioplayer.add_sc",