mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
radiotext.cpp/h: add signal to implement slots after decoding of text lines
This commit is contained in:
@@ -396,6 +396,7 @@ fprintf(stderr, "MEC=0x%02x DSN=0x%02x PSN=0x%02x MEL=%02d STATUS=0x%02x MFL=%02
|
|||||||
S_RtOsd = 1;
|
S_RtOsd = 1;
|
||||||
RT_Info = (RT_Info > 0) ? RT_Info : 1;
|
RT_Info = (RT_Info > 0) ? RT_Info : 1;
|
||||||
RadioStatusMsg();
|
RadioStatusMsg();
|
||||||
|
OnAfterDecodeLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (RTP_TToggle > 0 && mtext[5] == 0x46 && S_RtFunc >= 2) { // RTplus tags V2.0, only if RT
|
else if (RTP_TToggle > 0 && mtext[5] == 0x46 && S_RtFunc >= 2) { // RTplus tags V2.0, only if RT
|
||||||
|
@@ -49,6 +49,7 @@
|
|||||||
#include <dmx.h>
|
#include <dmx.h>
|
||||||
#include <OpenThreads/Thread>
|
#include <OpenThreads/Thread>
|
||||||
#include <OpenThreads/Condition>
|
#include <OpenThreads/Condition>
|
||||||
|
#include <sigc++/signal.h>
|
||||||
|
|
||||||
typedef unsigned char uchar;
|
typedef unsigned char uchar;
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
@@ -60,7 +61,7 @@ extern char *ReplayFile;
|
|||||||
#define RT_MEL 65
|
#define RT_MEL 65
|
||||||
#define tr(a) a
|
#define tr(a) a
|
||||||
|
|
||||||
class CRadioText : public OpenThreads::Thread
|
class CRadioText : public OpenThreads::Thread, public sigc::trackable
|
||||||
{
|
{
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -103,6 +104,7 @@ public:
|
|||||||
|
|
||||||
void radiotext_stop(void);
|
void radiotext_stop(void);
|
||||||
bool haveRadiotext(void) {return have_radiotext; }
|
bool haveRadiotext(void) {return have_radiotext; }
|
||||||
|
sigc::signal<void> OnAfterDecodeLine;
|
||||||
|
|
||||||
cDemux *audioDemux;
|
cDemux *audioDemux;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user