| 1395 | } |
| 1396 | |
| 1397 | SAMSubSession::SAMSubSession (std::shared_ptr<SAMMasterSession> master, std::string_view name, SAMSessionType type, uint16_t port): |
| 1398 | SAMSession (master->m_Bridge, name, type), masterSession (master), inPort (port) |
| 1399 | { |
| 1400 | if (Type == SAMSessionType::eSAMSessionTypeStream && port) |
| 1401 | { |
| 1402 | // additional streaming destination, use default if port is 0 |
| 1403 | auto d = masterSession->GetLocalDestination ()->CreateStreamingDestination (inPort); |
| 1404 | if (d) d->Start (); |
| 1405 | } |
| 1406 | // TODO: implement datagrams |
| 1407 | } |
| 1408 | |
| 1409 | std::shared_ptr<ClientDestination> SAMSubSession::GetLocalDestination () |
| 1410 | { |
nothing calls this directly
no test coverage detected