radiotext.cpp/h: add signal to implement slots after decoding of text lines

This commit is contained in:
2018-10-20 16:55:44 +02:00
parent ffbb24609c
commit 65bd775455
2 changed files with 4 additions and 1 deletions

View File

@@ -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;
RT_Info = (RT_Info > 0) ? RT_Info : 1;
RadioStatusMsg();
OnAfterDecodeLine();
}
else if (RTP_TToggle > 0 && mtext[5] == 0x46 && S_RtFunc >= 2) { // RTplus tags V2.0, only if RT

View File

@@ -49,6 +49,7 @@
#include <dmx.h>
#include <OpenThreads/Thread>
#include <OpenThreads/Condition>
#include <sigc++/signal.h>
typedef unsigned char uchar;
typedef unsigned int uint;
@@ -60,7 +61,7 @@ extern char *ReplayFile;
#define RT_MEL 65
#define tr(a) a
class CRadioText : public OpenThreads::Thread
class CRadioText : public OpenThreads::Thread, public sigc::trackable
{
private:
@@ -103,6 +104,7 @@ public:
void radiotext_stop(void);
bool haveRadiotext(void) {return have_radiotext; }
sigc::signal<void> OnAfterDecodeLine;
cDemux *audioDemux;