mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user