TWIN: forward mirrored audio/flush to satellites + integration tests
TwinLink::handleMsgTrunkAudio and handleMsgTrunkFlush now call forwardAudioToSatellitesExcept / forwardFlushToSatellitesExcept, mirroring TrunkLink. Without this, satellites attached to a twin member only saw talker-state updates for traffic originated on the partner — the audio frames themselves were dropped. Adds test_09 (satellite handshakes with the twin parent) and test_10 (client on ref2 transmits; satellite on ref1 receives TalkerStart + audio frames via the TWIN-mirror path). Wires a [SATELLITE] section and host port mapping into the twin topology generator and lets SatellitePeer.connect_satellite take an explicit port override.
This commit is contained in:
1 parent
7507c116e6
commit
337cfa7208
5 files changed
+169
-7
No files matched your search
@@ -477,6 +477,7 @@ void TwinLink::handleMsgTrunkAudio(std::istream& is)
|
||||
if (msg.audio().empty()) return;
|
||||
MsgUdpAudio udp_msg(msg.audio());
|
||||
m_reflector->broadcastUdpMsg(udp_msg, ReflectorClient::TgFilter(msg.tg()));
|
||||
m_reflector->forwardAudioToSatellitesExcept(nullptr, msg.tg(), msg.audio());
|
||||
} /* TwinLink::handleMsgTrunkAudio */
|
||||
|
||||
|
||||
@@ -490,6 +491,7 @@ void TwinLink::handleMsgTrunkFlush(std::istream& is)
|
||||
}
|
||||
m_reflector->broadcastUdpMsg(MsgUdpFlushSamples(),
|
||||
ReflectorClient::TgFilter(msg.tg()));
|
||||
m_reflector->forwardFlushToSatellitesExcept(nullptr, msg.tg());
|
||||
} /* TwinLink::handleMsgTrunkFlush */
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user