mmserv/voipaudioservices/VoIPIntfc/src/VoIPUtilityFactoryImpl.cpp
changeset 53 eabc8c503852
parent 38 9e9fc5ab059f
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
    83         const TVersion /*aVersion*/,
    83         const TVersion /*aVersion*/,
    84         const CVoIPUtilityFactory::TVoIPCallType /*aCallType*/,
    84         const CVoIPUtilityFactory::TVoIPCallType /*aCallType*/,
    85         CVoIPAudioDownlinkStream*& aDnLink)
    85         CVoIPAudioDownlinkStream*& aDnLink)
    86     {
    86     {
    87     iDownLink = CVoIPAudioDownlinkStreamImpl::NewL(iPriorityDn);
    87     iDownLink = CVoIPAudioDownlinkStreamImpl::NewL(iPriorityDn);
    88     if (iDownLink)
    88     aDnLink = iDownLink;
    89         {
       
    90         aDnLink = iDownLink;
       
    91         }
       
    92     }
    89     }
    93 
    90 
    94 // ---------------------------------------------------------------------------
    91 // ---------------------------------------------------------------------------
    95 // CVoIPUtilityFactoryImpl::CreateDownlinkStreamL
    92 // CVoIPUtilityFactoryImpl::CreateDownlinkStreamL
    96 // ---------------------------------------------------------------------------
    93 // ---------------------------------------------------------------------------
    98 void CVoIPUtilityFactoryImpl::CreateDownlinkStreamL(
    95 void CVoIPUtilityFactoryImpl::CreateDownlinkStreamL(
    99         const TVersion /*aVersion*/, CVoIPJitterBufferIntfc*& aJBIntfc,
    96         const TVersion /*aVersion*/, CVoIPJitterBufferIntfc*& aJBIntfc,
   100         CVoIPAudioDownlinkStream*& aDnLink)
    97         CVoIPAudioDownlinkStream*& aDnLink)
   101     {
    98     {
   102     iDownLink = CVoIPAudioDownlinkStreamImpl::NewL(iPriorityDn);
    99     iDownLink = CVoIPAudioDownlinkStreamImpl::NewL(iPriorityDn);
       
   100     aDnLink = iDownLink;
   103 
   101 
   104     if (iDownLink)
   102     if (iDownLink)
   105         {
   103         {
   106         iDownLink->CreateJitterBufferIntfcL(aJBIntfc);
   104         iDownLink->CreateJitterBufferIntfcL(aJBIntfc);
   107         aDnLink = iDownLink;
       
   108         }
   105         }
   109     }
   106     }
   110 
   107 
   111 // ---------------------------------------------------------------------------
   108 // ---------------------------------------------------------------------------
   112 // CVoIPUtilityFactoryImpl::CreateUplinkStreamL
   109 // CVoIPUtilityFactoryImpl::CreateUplinkStreamL
   164         default:
   161         default:
   165             bufLen = KVoIPG711FrameLen20ms;
   162             bufLen = KVoIPG711FrameLen20ms;
   166         }
   163         }
   167 
   164 
   168     // Create buffer type- and codec-dependent
   165     // Create buffer type- and codec-dependent
   169     if (aType == CVoIPDataBuffer::EJitterBuffer && aCodecFormat != EPCM16)
   166     if (aType == CVoIPDataBuffer::EJitterBuffer && aCodecFormat == EPCM16)
       
   167         {
       
   168         User::Leave(KErrNotSupported);
       
   169         }
       
   170     else if (aType == CVoIPDataBuffer::EJitterBuffer)
   170         {
   171         {
   171         aBuffer = CVoIPJBDataBufferImpl::NewL(bufLen);
   172         aBuffer = CVoIPJBDataBufferImpl::NewL(bufLen);
   172         }
   173         }
   173     else
   174     else
   174         {
   175         {