bool OutboundConnectivity::Initialize() { if (!InitializePorts(_videoDataFd, _videoDataPort, _videoRTCPFd, _videoRTCPPort)) { FATAL("Unable to initialize video ports"); return false; } if (!InitializePorts(_audioDataFd, _audioDataPort, _audioRTCPFd, _audioRTCPPort)) { FATAL("Unable to initialize audio ports"); return false; } return true; }
bool OutboundConnectivity::Initialize() { if (_forceTcp) { _rtpClient.audioDataChannel = 0; _rtpClient.audioRtcpChannel = 1; _rtpClient.videoDataChannel = 2; _rtpClient.videoRtcpChannel = 3; } else { if (!InitializePorts(_videoDataFd, _videoDataPort, &_pVideoNATData, _videoRTCPFd, _videoRTCPPort, &_pVideoNATRTCP)) { FATAL("Unable to initialize video ports"); return false; } if (!InitializePorts(_audioDataFd, _audioDataPort, &_pAudioNATData, _audioRTCPFd, _audioRTCPPort, &_pAudioNATRTCP)) { FATAL("Unable to initialize audio ports"); return false; } } return true; }
U8 InitializeMicroAPI(void) { InitializePorts(); InitializeClock(); InitializeSPI(); InitializeUART1(k115200); InitializeInterrupts(); GpioSet(NSSpin); InitializeTimers(); RealTimeClockOn(); StartIntervalTimer(); return 0; }