mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
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:
@@ -155,6 +155,7 @@ audiomenu.volume_adjustment_pcm PCM-Tonspuren
|
|||||||
audiomenu.volume_start Einschaltlautstärke
|
audiomenu.volume_start Einschaltlautstärke
|
||||||
audiomenu.volume_step Lautstärke Schrittweite
|
audiomenu.volume_step Lautstärke Schrittweite
|
||||||
audioplayer.add Hinzufügen
|
audioplayer.add Hinzufügen
|
||||||
|
audioplayer.add_fav Lokale Radiofavoriten
|
||||||
audioplayer.add_ic Icecast
|
audioplayer.add_ic Icecast
|
||||||
audioplayer.add_loc Lokale Radioliste
|
audioplayer.add_loc Lokale Radioliste
|
||||||
audioplayer.add_sc SHOUTcast
|
audioplayer.add_sc SHOUTcast
|
||||||
|
@@ -155,6 +155,7 @@ audiomenu.volume_adjustment_pcm PCM streams
|
|||||||
audiomenu.volume_start Start volume
|
audiomenu.volume_start Start volume
|
||||||
audiomenu.volume_step Volume step
|
audiomenu.volume_step Volume step
|
||||||
audioplayer.add Add
|
audioplayer.add Add
|
||||||
|
audioplayer.add_fav Local radio favorites
|
||||||
audioplayer.add_ic Icecast
|
audioplayer.add_ic Icecast
|
||||||
audioplayer.add_loc Local radio list
|
audioplayer.add_loc Local radio list
|
||||||
audioplayer.add_sc SHOUTcast
|
audioplayer.add_sc SHOUTcast
|
||||||
|
@@ -708,6 +708,10 @@ int CAudioPlayerGui::show()
|
|||||||
CMenuSelectorTarget *InetRadioInputChanger = new CMenuSelectorTarget(&select);
|
CMenuSelectorTarget *InetRadioInputChanger = new CMenuSelectorTarget(&select);
|
||||||
// -- setup menue for inetradio input
|
// -- setup menue for inetradio input
|
||||||
sprintf(cnt, "%d", count);
|
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(
|
InputSelector.addItem(new CMenuForwarder(
|
||||||
LOCALE_AUDIOPLAYER_ADD_LOC, true, NULL, InetRadioInputChanger,
|
LOCALE_AUDIOPLAYER_ADD_LOC, true, NULL, InetRadioInputChanger,
|
||||||
cnt, CRCInput::convertDigitToKey(count + 1)), old_select == count);
|
cnt, CRCInput::convertDigitToKey(count + 1)), old_select == count);
|
||||||
@@ -731,21 +735,28 @@ int CAudioPlayerGui::show()
|
|||||||
switch (select)
|
switch (select)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
scanXmlFile(RADIO_STATION_XML_FILE);
|
scanXmlFile(RADIO_FAVORITES_XML_FILE);
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
||||||
paintLCD();
|
paintLCD();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
readDir_ic();
|
scanXmlFile(RADIO_STATION_XML_FILE);
|
||||||
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
||||||
paintLCD();
|
paintLCD();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
readDir_ic();
|
||||||
|
CVFD::getInstance()->setMode(CVFD::MODE_AUDIO);
|
||||||
|
paintLCD();
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
openSCbrowser();
|
openSCbrowser();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
m_current = 0;
|
||||||
|
m_selected = 0;
|
||||||
update=true;
|
update=true;
|
||||||
}
|
}
|
||||||
else if (shufflePlaylist())
|
else if (shufflePlaylist())
|
||||||
|
@@ -182,6 +182,7 @@ typedef enum
|
|||||||
LOCALE_AUDIOMENU_VOLUME_START,
|
LOCALE_AUDIOMENU_VOLUME_START,
|
||||||
LOCALE_AUDIOMENU_VOLUME_STEP,
|
LOCALE_AUDIOMENU_VOLUME_STEP,
|
||||||
LOCALE_AUDIOPLAYER_ADD,
|
LOCALE_AUDIOPLAYER_ADD,
|
||||||
|
LOCALE_AUDIOPLAYER_ADD_FAV,
|
||||||
LOCALE_AUDIOPLAYER_ADD_IC,
|
LOCALE_AUDIOPLAYER_ADD_IC,
|
||||||
LOCALE_AUDIOPLAYER_ADD_LOC,
|
LOCALE_AUDIOPLAYER_ADD_LOC,
|
||||||
LOCALE_AUDIOPLAYER_ADD_SC,
|
LOCALE_AUDIOPLAYER_ADD_SC,
|
||||||
|
@@ -182,6 +182,7 @@ const char * locale_real_names[] =
|
|||||||
"audiomenu.volume_start",
|
"audiomenu.volume_start",
|
||||||
"audiomenu.volume_step",
|
"audiomenu.volume_step",
|
||||||
"audioplayer.add",
|
"audioplayer.add",
|
||||||
|
"audioplayer.add_fav",
|
||||||
"audioplayer.add_ic",
|
"audioplayer.add_ic",
|
||||||
"audioplayer.add_loc",
|
"audioplayer.add_loc",
|
||||||
"audioplayer.add_sc",
|
"audioplayer.add_sc",
|
||||||
|
Reference in New Issue
Block a user