mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2016-05-18 Fred Gleason <fredg@paravelsystems.com>
* Added support for the RDCatchd 'DE' command in 'rdcatchd/rdcatchd.cpp', 'rdcatchd/rdcatchd.h', 'rdcatchd/event_player.cpp', 'rdcatchd/event_player.h' and 'rdcatchd/local_macros.cpp'. * Added a deck event indicator to RDCatch's deck monitor in 'rdcatch/deckmon.cpp' and 'rdcatch/deckmon.h'.
This commit is contained in:
@@ -263,6 +263,7 @@ void RDCatchConnect::DispatchCommand()
|
||||
unsigned chan;
|
||||
int status;
|
||||
int id;
|
||||
int number;
|
||||
|
||||
if(!strcmp(args[0],"PW")) { // Password Response
|
||||
if(args[1][0]=='+') {
|
||||
@@ -274,6 +275,16 @@ void RDCatchConnect::DispatchCommand()
|
||||
}
|
||||
}
|
||||
|
||||
if(!strcmp(args[0],"DE")) { // Deck Event
|
||||
if(sscanf(args[1],"%d",&deck)!=1) {
|
||||
return;
|
||||
}
|
||||
if(sscanf(args[2],"%d",&number)!=1) {
|
||||
return;
|
||||
}
|
||||
emit deckEventSent(cc_serial,deck,number);
|
||||
}
|
||||
|
||||
if(!strcmp(args[0],"RE")) { // Channel Status
|
||||
if(sscanf(args[1],"%u",&chan)!=1){
|
||||
return;
|
||||
|
@@ -72,6 +72,7 @@ class RDCatchConnect : public QObject
|
||||
void meterLevel(int serial,int deck,int chan,int level);
|
||||
void eventUpdated(int id);
|
||||
void eventPurged(int id);
|
||||
void deckEventSent(int serial,int chan,int number);
|
||||
void heartbeatFailed(int id);
|
||||
|
||||
private slots:
|
||||
|
Reference in New Issue
Block a user