void MpRtpInputAudioConnection::sendConnectionNotification(MpNotificationMsgType type, intptr_t data)
{
   if (m_pConnectionNotificationQueue && areNotificationsEnabled())
   {
      // create message and send it to connection notification queue
      OsIntPtrMsg connectionMsg(OsMsg::MP_CONNECTION_NOTF_MSG,
               (unsigned char)MP_NOTIFICATION_AUDIO,
               (int)type,
               mMyID,
               data);

      m_pConnectionNotificationQueue->send(connectionMsg, OsTime::NO_WAIT_TIME);
   }
}
Example #2
0
OsStatus MpResource::sendNotification(MpResNotificationMsg& msg)
{
   OsStatus stat = OS_SUCCESS;
   // Only send a notification if notifications are enabled.
   if (areNotificationsEnabled() == TRUE)
   {
      MpFlowGraphBase* pFg = getFlowGraph();
      assert(pFg != NULL);

      msg.setConnectionId(mConnectionId);
      msg.setStreamId(mStreamId);

      stat = pFg->postNotification(msg);
   }
   return stat;
}