Missing link in the signal slot connection is fixed. wfmain now receives

information about the plugins that exist.
lv2
Elliott Liggett 2021-08-13 23:17:17 -07:00
rodzic 163cb4b3cb
commit bcec558929
2 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@ -104,7 +104,7 @@ void rigCommander::commSetup(unsigned char rigCivAddr, udpPreferences prefs, aud
// Plugin:
connect(udp, &udpHandler::havePluginInstanceInfo,
[=](const pluginInstanceInfoType info) {
qDebug(logRig()) << "Passing plugin information from rig to wfview.";
qDebug(logRig()) << __PRETTY_FUNCTION__ << "Passing plugin information from rig to wfview.";
emit sendPluginInstanceInfo(info);
});

Wyświetl plik

@ -333,6 +333,12 @@ void udpHandler::dataReceived()
QObject::connect(this, SIGNAL(haveChangeLatency(quint16)), audio, SLOT(changeLatency(quint16)));
QObject::connect(this, SIGNAL(haveSetVolume(unsigned char)), audio, SLOT(setVolume(unsigned char)));
connect(audio, &udpAudio::havePluginInstanceInfo,
[=](const pluginInstanceInfoType info) {
emit havePluginInstanceInfo(info);
qDebug(logUdp()) << __PRETTY_FUNCTION__ << "Passing plugin info from udpHandler to rig";
});
streamOpened = true;
emit haveNetworkStatus(devName);
@ -769,12 +775,12 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, quint16 audioPort, audio
connect(rxaudio, &audioHandler::havePluginInfo,
[=](const pluginInstanceInfoType info) {
emit havePluginInstanceInfo(info);
qDebug(logUdp()) << "Passing plugin info from udp handler to rig";
qDebug(logUdp()) << __PRETTY_FUNCTION__ << "Passing RX plugin info from udp audio handler to udpHandler";
});
connect(txaudio, &audioHandler::havePluginInfo,
[=](const pluginInstanceInfoType info) {
emit havePluginInstanceInfo(info);
qDebug(logUdp()) << "Passing plugin info from udp handler to rig";
qDebug(logUdp()) << __PRETTY_FUNCTION__ << "Passing TX plugin info from udp audio handler to udpHandler";
});
}