예제 #1
0
OsStatus MpeGIPSiPCMWB::initEncode(void)
{
#ifdef NOT_YET /* [ */
   int res = 0;

   //Allocate memory for encoder instance
   if (NULL == pEncoderState)
      res += IPCMWB_GIPS_10MS16B_create(&pEncoderState);

   //Initialize encoder
   res += IPCMWB_GIPS_10MS16B_InitEncoder(pEncoderState);

   return ((0==res) ? OS_SUCCESS : OS_NO_MEMORY);
#endif /* NOT_YET ] */
   return OS_NOT_YET_IMPLEMENTED;
}
예제 #2
0
OsStatus MpdGIPSiPCMWB::initDecode(MpConnection* pConnection)
{
#ifdef NOT_YET /* [ */
   int res = 0;

   //Get NetEq pointer
   mpJBState = pConnection->getJBinst();

   //Allocate memory, only once though
   if(pDecoderState==NULL)
      res += IPCMWB_GIPS_10MS16B_create(&pDecoderState);

   // Set the payload number for NetEq
   NETEQ_GIPS_10MS16B_initCodepoint(mpJBState,
                         "IPCMWB", 16000, getPayloadType());

   //Attach the decoder to NetEq instance
   res += NETEQIPCMWB_GIPS_10MS16B_init(mpJBState,pDecoderState);

   return ((0==res) ? OS_SUCCESS : OS_NO_MEMORY);
#endif /* NOT_YET ] */
   return OS_NOT_YET_IMPLEMENTED;
}