mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
- add support for radiotext (needs testing) -> http://www.dbox2world.net/board293-coolstream-hd1/board296-coolstream-software/10635-radiotext-einbauen/
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1501 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -794,6 +794,7 @@ typedef enum
|
||||
LOCALE_MISCSETTINGS_NOAVIAWATCHDOG,
|
||||
LOCALE_MISCSETTINGS_NOENXWATCHDOG,
|
||||
LOCALE_MISCSETTINGS_PMTUPDATE,
|
||||
LOCALE_MISCSETTINGS_RADIOTEXT,
|
||||
LOCALE_MISCSETTINGS_SHOW_INFOMENU,
|
||||
LOCALE_MISCSETTINGS_SHUTDOWN_COUNT,
|
||||
LOCALE_MISCSETTINGS_SHUTDOWN_COUNT_HINT1,
|
||||
|
@@ -794,6 +794,7 @@ const char * locale_real_names[] =
|
||||
"miscsettings.noaviawatchdog",
|
||||
"miscsettings.noenxwatchdog",
|
||||
"miscsettings.pmtupdate",
|
||||
"miscsettings.radiotext",
|
||||
"miscsettings.show_infomenu",
|
||||
"miscsettings.shutdown_count",
|
||||
"miscsettings.shutdown_count_hint1",
|
||||
|
@@ -399,6 +399,27 @@ bool CSectionsdConfigNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CRadiotextNotifier::changeNotify(const neutrino_locale_t, void *)
|
||||
{
|
||||
if (g_settings.radiotext_enable)
|
||||
{
|
||||
if (g_Radiotext == NULL)
|
||||
g_Radiotext = new CRadioText;
|
||||
if (g_Radiotext && ((CNeutrinoApp::getInstance()->getMode()) == NeutrinoMessages::mode_radio))
|
||||
g_Radiotext->setPid(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].pid);
|
||||
}
|
||||
else
|
||||
{
|
||||
// stop radiotext PES decoding
|
||||
if (g_Radiotext)
|
||||
g_Radiotext->radiotext_stop();
|
||||
delete g_Radiotext;
|
||||
g_Radiotext = NULL;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CTouchFileNotifier::changeNotify(const neutrino_locale_t, void * data)
|
||||
{
|
||||
if ((*(int *)data) != 0)
|
||||
|
@@ -314,4 +314,10 @@ public:
|
||||
bool changeNotify(const neutrino_locale_t, void * data);
|
||||
};
|
||||
|
||||
class CRadiotextNotifier : public CChangeObserver
|
||||
{
|
||||
public:
|
||||
bool changeNotify(const neutrino_locale_t, void * Data);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -102,7 +102,8 @@ struct SNeutrinoSettings
|
||||
int clockrec;
|
||||
int rounded_corners;
|
||||
int ci_standby_reset;
|
||||
|
||||
int radiotext_enable;
|
||||
|
||||
//vcr
|
||||
int vcr_AutoSwitch;
|
||||
|
||||
|
Reference in New Issue
Block a user