rtp/rtpstack/src/rtpapi.cpp
changeset 0 307788aac0a8
child 29 5f12516512fa
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2002-2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <rtpapi.h>
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 
       
    26 #include "rtpmanager.h"
       
    27 
       
    28 /*****************************************************************************/ 
       
    29 /****************************** API FUNCTIONS   ******************************/ 
       
    30 /*****************************************************************************/ 
       
    31 // ---------------------------------------------------------------------------
       
    32 // C++ default constructor can NOT contain any code, that
       
    33 // might leave.
       
    34 // ---------------------------------------------------------------------------
       
    35 //
       
    36 CRtpAPI::CRtpAPI( void ) 
       
    37     : iManager( NULL )
       
    38     {
       
    39     }
       
    40 
       
    41 // ---------------------------------------------------------------------------
       
    42 // Symbian 2nd phase constructor can leave.
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 void CRtpAPI::ConstructL( MRtpErrNotify& aErrNotify )
       
    46     {
       
    47     iManager = CRtpManager::NewL( aErrNotify );
       
    48     }
       
    49 
       
    50 // ---------------------------------------------------------------------------
       
    51 // Two-phased constructor.
       
    52 // ---------------------------------------------------------------------------
       
    53 //
       
    54 EXPORT_C CRtpAPI* CRtpAPI::NewL( MRtpErrNotify& aErrNotify )
       
    55     {
       
    56     CRtpAPI* self = new ( ELeave ) CRtpAPI;
       
    57 
       
    58     CleanupStack::PushL( self );
       
    59     self->ConstructL( aErrNotify );   
       
    60     CleanupStack::Pop();  //self
       
    61 
       
    62     return self;
       
    63     }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // Destructor
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 CRtpAPI::~CRtpAPI( void )
       
    70     {
       
    71     delete iManager;
       
    72     }
       
    73 
       
    74 // ---------------------------------------------------------------------------
       
    75 // TInt CRtpAPI::OpenL()
       
    76 // 
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 EXPORT_C TInt CRtpAPI::OpenL( const TRtpSdesParams& aSdesInfo,
       
    80                               const TDesC* aRtpPacketDll,
       
    81                               const RSocketServ* aSocketServPtr,
       
    82                               const RConnection* aConnPtr )
       
    83     {
       
    84 	RSocketServ* socketServPtr = const_cast<RSocketServ*>( aSocketServPtr );
       
    85 	RConnection* connPtr       = const_cast<RConnection*>( aConnPtr );
       
    86 	
       
    87     return iManager->OpenL( aSdesInfo, aRtpPacketDll, socketServPtr, connPtr );
       
    88     }
       
    89 
       
    90 // ---------------------------------------------------------------------------
       
    91 // CRtpAPI::StartConnection()
       
    92 // Synchronous version.
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 EXPORT_C TInt CRtpAPI::StartConnection( TInt aIapId )
       
    96     {
       
    97     return iManager->StartConnection( aIapId );
       
    98     }
       
    99 
       
   100 // ---------------------------------------------------------------------------
       
   101 // CRtpAPI::StartConnection()
       
   102 // Asynchronous version.
       
   103 // ---------------------------------------------------------------------------
       
   104 //
       
   105 EXPORT_C TInt CRtpAPI::StartConnection( TRequestStatus& aStatus, TInt aIapId )
       
   106     {
       
   107     return iManager->StartConnection( aStatus, aIapId );
       
   108     }
       
   109 
       
   110 // ---------------------------------------------------------------------------
       
   111 // CRtpAPI::CancelStart()
       
   112 // 
       
   113 // ---------------------------------------------------------------------------
       
   114 //
       
   115 EXPORT_C void CRtpAPI::CancelStart()
       
   116     {
       
   117     iManager->CancelStart();
       
   118     }
       
   119 
       
   120 // ---------------------------------------------------------------------------
       
   121 // CRtpAPI::Close()
       
   122 // 
       
   123 // ---------------------------------------------------------------------------
       
   124 //
       
   125 EXPORT_C void CRtpAPI::Close( void )
       
   126     {
       
   127     iManager->Close();
       
   128     }
       
   129 
       
   130 // ---------------------------------------------------------------------------
       
   131 // CRtpAPI::SetLocalSdes()
       
   132 // 
       
   133 // ---------------------------------------------------------------------------
       
   134 //
       
   135 EXPORT_C void CRtpAPI::SetLocalSdes( const TRtpSdesParams& aSdesInfo )
       
   136     {
       
   137     iManager->SetLocalSdes( aSdesInfo );
       
   138     }
       
   139 
       
   140 // ---------------------------------------------------------------------------
       
   141 // CRtpAPI::Version()
       
   142 // 
       
   143 // ---------------------------------------------------------------------------
       
   144 //
       
   145 EXPORT_C TVersion CRtpAPI::Version() const
       
   146     {
       
   147     return TVersion(2, 0, 0);
       
   148     }
       
   149 
       
   150 // ---------------------------------------------------------------------------
       
   151 // TInetAddr& CRtpAPI::GetLocalIPAddressL()
       
   152 // 
       
   153 // ---------------------------------------------------------------------------
       
   154 //
       
   155 EXPORT_C TInetAddr& CRtpAPI::GetLocalIPAddressL()
       
   156     {
       
   157     return iManager->GetLocalIPAddressL();
       
   158     }
       
   159     
       
   160  
       
   161 
       
   162 /*****************************************************************************/ 
       
   163 /***************************** SESSION FUNCTIONS  ****************************/ 
       
   164 /*****************************************************************************/ 
       
   165 // ---------------------------------------------------------------------------
       
   166 // TRtpId CRtpAPI::CreateSessionL()
       
   167 // 
       
   168 // ---------------------------------------------------------------------------
       
   169 //
       
   170 EXPORT_C TRtpId CRtpAPI::CreateSessionL( const TCreateSessionParams& aSessionParams,
       
   171                                          TUint& aPort,
       
   172                                          TBool aEnableRtcp,
       
   173                                          const TRtcpParams* aRtcpParams )
       
   174     {
       
   175     return iManager->CreateSessionL( aSessionParams, aPort, aEnableRtcp, aRtcpParams );
       
   176     }
       
   177 
       
   178 // ---------------------------------------------------------------------------
       
   179 // TRtpId CRtpAPI::CreateSessionL()
       
   180 // 
       
   181 // ---------------------------------------------------------------------------
       
   182 //
       
   183 EXPORT_C TRtpId CRtpAPI::CreateSessionL( const TCreateSessionParams& aSessionParams,
       
   184                                          TUint& aPort,
       
   185                                          TBool aEnableRtcp,
       
   186                                          const TRtcpParams* aRtcpParams,
       
   187                                          CSRTPSession& aSession )
       
   188     {
       
   189     return iManager->CreateSessionL( aSessionParams, aPort, aEnableRtcp, aRtcpParams, aSession );
       
   190     }
       
   191 
       
   192 
       
   193 // ---------------------------------------------------------------------------
       
   194 // TInt CRtpAPI::SetRemoteAddress()
       
   195 // 
       
   196 // ---------------------------------------------------------------------------
       
   197 //
       
   198 EXPORT_C TInt CRtpAPI::SetRemoteAddress( TRtpId aSessionId, const TInetAddr& aRemoteAddr )
       
   199     {
       
   200     return iManager->SetRemoteAddress( aSessionId, const_cast< TInetAddr& >( aRemoteAddr ) );
       
   201     }
       
   202 
       
   203 
       
   204 // ---------------------------------------------------------------------------
       
   205 // TInt CRtpAPI::SetRemoteRtcpAddress()
       
   206 // 
       
   207 // ---------------------------------------------------------------------------
       
   208 //
       
   209 EXPORT_C TInt CRtpAPI::SetRemoteRtcpAddress( TRtpId aSessionId, const TInetAddr& aRemoteRtcpAddr )
       
   210     {
       
   211     return iManager->SetRemoteRtcpAddress( aSessionId, const_cast< TInetAddr& >( aRemoteRtcpAddr ) );
       
   212     }
       
   213     
       
   214 // ---------------------------------------------------------------------------
       
   215 // TInt CRtpAPI::StartSession()
       
   216 // 
       
   217 // ---------------------------------------------------------------------------
       
   218 //
       
   219 EXPORT_C TInt CRtpAPI::StartSession( TRtpId aSessionId )
       
   220     {
       
   221     return iManager->StartSession( aSessionId );
       
   222     }
       
   223 
       
   224 // ---------------------------------------------------------------------------
       
   225 // CRtpAPI::CloseSession()
       
   226 // 
       
   227 // ---------------------------------------------------------------------------
       
   228 //
       
   229 EXPORT_C void CRtpAPI::CloseSession( TRtpId aSessionId )
       
   230     {
       
   231     iManager->CloseSession( aSessionId );
       
   232     }
       
   233 
       
   234 // ---------------------------------------------------------------------------
       
   235 // TRtpId CRTPAPI::GetSessionId()
       
   236 // 
       
   237 // ---------------------------------------------------------------------------
       
   238 //
       
   239 EXPORT_C TRtpId CRtpAPI::GetSessionId( TRtpId aStreamId )
       
   240     {
       
   241     return iManager->GetSessionId( aStreamId );
       
   242     }
       
   243     
       
   244 
       
   245 
       
   246 
       
   247 
       
   248 /*****************************************************************************/ 
       
   249 /****************************** STREAM FUNCTIONS  ****************************/ 
       
   250 /*****************************************************************************/ 
       
   251 // ---------------------------------------------------------------------------
       
   252 // TRtpId CRtpAPI::CreateReceiveStreamL()
       
   253 // 
       
   254 // ---------------------------------------------------------------------------
       
   255 //
       
   256 EXPORT_C TRtpId CRtpAPI::CreateReceiveStreamL( TRtpId aSessionId, 
       
   257                                                const TRcvStreamParams& aParams )
       
   258     {
       
   259     return iManager->CreateReceiveStreamL( aSessionId, aParams );
       
   260     }
       
   261 
       
   262 // ---------------------------------------------------------------------------
       
   263 // TRtpId CRtpAPI::CreateTransmitStreamL()
       
   264 // 
       
   265 // ---------------------------------------------------------------------------
       
   266 //
       
   267 EXPORT_C TRtpId CRtpAPI::CreateTransmitStreamL( TRtpId aSessionId, 
       
   268                                                 const TTranStreamParams& aParams, 
       
   269                                                 TRtpSSRC& aSSRC )
       
   270     {
       
   271     return iManager->CreateTransmitStreamL( aSessionId, aParams, aSSRC );
       
   272     }
       
   273 
       
   274 // ---------------------------------------------------------------------------
       
   275 // TRtpId CRtpAPI::CreateTransmitStreamExtL()
       
   276 // 
       
   277 // ---------------------------------------------------------------------------
       
   278 //
       
   279 EXPORT_C TRtpId CRtpAPI::CreateTransmitStreamExtL( TRtpId aSessionId,
       
   280                                                    const TTranStreamParams& aParams,
       
   281                                                    const TRtpSSRC aSSRC )
       
   282     {
       
   283     return iManager->CreateTransmitStreamExtL( aSessionId, aParams, aSSRC );
       
   284     }
       
   285 
       
   286 // ---------------------------------------------------------------------------
       
   287 // CRtpAPI::CloseStream()
       
   288 // 
       
   289 // ---------------------------------------------------------------------------
       
   290 //
       
   291 EXPORT_C void CRtpAPI::CloseStream( TRtpId aStreamId )
       
   292     {
       
   293     iManager->CloseStream( aStreamId );
       
   294     }
       
   295     
       
   296 // ---------------------------------------------------------------------------
       
   297 // TInt CRtpAPI::GetStreamStatistics()
       
   298 // 
       
   299 // ---------------------------------------------------------------------------
       
   300 //
       
   301 EXPORT_C TInt CRtpAPI::GetStreamStatistics( TRtpId aStreamId, TRtpPeerStat& aStat )
       
   302     {
       
   303     return iManager->GetStreamStatistics( aStreamId, aStat );
       
   304     }
       
   305     
       
   306 
       
   307 
       
   308 /*****************************************************************************/ 
       
   309 /****************************** RTP FUNCTIONS  *******************************/ 
       
   310 /*****************************************************************************/ 
       
   311 // ---------------------------------------------------------------------------
       
   312 // TInt CRtpAPI::RegisterRtpObserver()
       
   313 // 
       
   314 // ---------------------------------------------------------------------------
       
   315 //
       
   316 EXPORT_C TInt CRtpAPI::RegisterRtpObserver( TRtpId aSessionId, MRtpObserver& aObserver )
       
   317     {
       
   318     return iManager->RegisterRtpObserver( aSessionId, aObserver );
       
   319     }
       
   320 
       
   321 // ---------------------------------------------------------------------------
       
   322 // CRtpAPI::UnregisterRtpObserver()
       
   323 // 
       
   324 // ---------------------------------------------------------------------------
       
   325 //
       
   326 EXPORT_C void CRtpAPI::UnregisterRtpObserver( TRtpId aSessionId )
       
   327     {
       
   328     iManager->UnregisterRtpObserver( aSessionId );
       
   329     }
       
   330 
       
   331 // ---------------------------------------------------------------------------
       
   332 // TInt CRtpAPI::SetNonRTPDataObserver()
       
   333 // 
       
   334 // ---------------------------------------------------------------------------
       
   335 //
       
   336 EXPORT_C TInt CRtpAPI::SetNonRTPDataObserver( TRtpId aSessionId, 
       
   337                                     MNonRTPDataObserver* aNonRTPDataObserver )
       
   338     {
       
   339     return iManager->SetNonRTPDataObserver( aSessionId, aNonRTPDataObserver );    
       
   340     }
       
   341 
       
   342 
       
   343 // ---------------------------------------------------------------------------
       
   344 // RSocket* CRtpAPI::GetRtpSocket()
       
   345 // 
       
   346 // ---------------------------------------------------------------------------
       
   347 //
       
   348 EXPORT_C RSocket* CRtpAPI::GetRtpSocket( TRtpId aSessionId )
       
   349     {
       
   350     return iManager->GetRtpSocket( aSessionId );
       
   351     }
       
   352 
       
   353 // ---------------------------------------------------------------------------
       
   354 // TInt CRtpAPI::SendRtpPacket()
       
   355 // 
       
   356 // ---------------------------------------------------------------------------
       
   357 //
       
   358 EXPORT_C TInt CRtpAPI::SendRtpPacket( TRtpId aTranStreamId,
       
   359                                       const TRtpSendHeader& aHeaderInfo,
       
   360                                       const TDesC8& aPayloadData )
       
   361     {
       
   362     return iManager->SendRtpPacket( aTranStreamId, aHeaderInfo, aPayloadData );
       
   363     }
       
   364 
       
   365 // ---------------------------------------------------------------------------
       
   366 // TInt CRtpAPI::SendRtpPacket()
       
   367 // 
       
   368 // ---------------------------------------------------------------------------
       
   369 //
       
   370 EXPORT_C TInt CRtpAPI::SendRtpPacket( TRtpId aTranStreamId,
       
   371                                       TRtpSequence aSequenceNum,
       
   372                                       const TRtpSendHeader& aHeaderInfo,
       
   373                                       const TDesC8& aPayloadData,
       
   374                                       TRequestStatus& aStatus )
       
   375     {
       
   376     return iManager->SendRtpPacket( aTranStreamId, aSequenceNum, aHeaderInfo, 
       
   377                                     aPayloadData, aStatus );
       
   378     }
       
   379 
       
   380 // ---------------------------------------------------------------------------
       
   381 // TInt CRtpAPI::SendRtpPacket()
       
   382 // 
       
   383 // ---------------------------------------------------------------------------
       
   384 //
       
   385 EXPORT_C TInt CRtpAPI::SendRtpPacket( TRtpId aTranStreamId,
       
   386                                       const TRtpSendHeader& aHeaderInfo,
       
   387                                       const TDesC8& aPayloadData,
       
   388                                       TRequestStatus& aStatus )
       
   389     {
       
   390     return iManager->SendRtpPacket( aTranStreamId, aHeaderInfo, aPayloadData, aStatus );
       
   391     }
       
   392 
       
   393 // ---------------------------------------------------------------------------
       
   394 // TInt CRtpAPI::SendData()
       
   395 // 
       
   396 // ---------------------------------------------------------------------------
       
   397 //
       
   398 EXPORT_C void CRtpAPI::SendDataL( TRtpId aSessionId,
       
   399                                 TBool aUseRTPSocket,
       
   400                                 const TDesC8& aData,
       
   401                                 TRequestStatus& aStatus )
       
   402     {
       
   403     iManager->SendDataL( aSessionId, aUseRTPSocket, aData, aStatus );    
       
   404     }
       
   405 
       
   406 
       
   407 // ---------------------------------------------------------------------------
       
   408 // void CancelSend( TRtpId aSessionId )
       
   409 // 
       
   410 // ---------------------------------------------------------------------------
       
   411 //
       
   412 EXPORT_C void CRtpAPI::CancelSend( TRtpId aSessionId )
       
   413     {
       
   414     iManager->CancelSend( aSessionId );
       
   415     }
       
   416 
       
   417 
       
   418 
       
   419 /*****************************************************************************/ 
       
   420 /****************************** RTCP FUNCTIONS  ******************************/ 
       
   421 /*****************************************************************************/ 
       
   422 // ---------------------------------------------------------------------------
       
   423 // TInt CRtpAPI::RegisterRtcpObserver()
       
   424 // 
       
   425 // ---------------------------------------------------------------------------
       
   426 //
       
   427 EXPORT_C TInt CRtpAPI::RegisterRtcpObserver( TRtpId aSessionId, MRtcpObserver& aObserver )
       
   428     {
       
   429     return iManager->RegisterRtcpObserver( aSessionId, aObserver );
       
   430     }
       
   431 
       
   432 // ---------------------------------------------------------------------------
       
   433 // CRtpAPI::UnregisterRtcpObserver()
       
   434 // 
       
   435 // ---------------------------------------------------------------------------
       
   436 //
       
   437 EXPORT_C void CRtpAPI::UnregisterRtcpObserver( TRtpId aSessionId )
       
   438     {
       
   439     iManager->UnregisterRtcpObserver( aSessionId );
       
   440     }
       
   441 
       
   442 // ---------------------------------------------------------------------------
       
   443 // RSocket* CRtpAPI::GetRtcpSocket()
       
   444 // 
       
   445 // ---------------------------------------------------------------------------
       
   446 //
       
   447 EXPORT_C RSocket* CRtpAPI::GetRtcpSocket( TRtpId aSessionId )
       
   448     {
       
   449     return iManager->GetRtcpSocket( aSessionId );
       
   450     }
       
   451 
       
   452 
       
   453 // ---------------------------------------------------------------------------
       
   454 // TInt CRtpAPI::SetRtcpParameters()
       
   455 // 
       
   456 // ---------------------------------------------------------------------------
       
   457 //
       
   458 EXPORT_C TInt CRtpAPI::SetRtcpParameters( TRtpId aSessionId,
       
   459                                           const TRtcpParams& aRtcpParams )
       
   460     {
       
   461     return iManager->SetRtcpParameters( aSessionId, aRtcpParams );
       
   462     }
       
   463 
       
   464 
       
   465 // ---------------------------------------------------------------------------
       
   466 // TInt CRtpAPI::SendRtcpByePacket()
       
   467 // 
       
   468 // ---------------------------------------------------------------------------
       
   469 //
       
   470 EXPORT_C TInt CRtpAPI::SendRtcpByePacket( TRtpId aTranStreamId,
       
   471                                           const TDesC8& aReason )
       
   472     {
       
   473     TInt functionValue=KErrNone;
       
   474     TRAPD(err, functionValue= iManager->SendRtcpByePacketL( aTranStreamId, aReason ));
       
   475     if (err)
       
   476     	{
       
   477     	return err;	
       
   478     	}
       
   479     else
       
   480     	{
       
   481     	return functionValue;
       
   482     	}	
       
   483     }
       
   484 
       
   485 // ---------------------------------------------------------------------------
       
   486 // TInt CRtpAPI::SendRtcpAppPacket()
       
   487 // 
       
   488 // ---------------------------------------------------------------------------
       
   489 //
       
   490 EXPORT_C TInt CRtpAPI::SendRtcpAppPacket( TRtpId aTranStreamId,
       
   491                                           const TRtcpApp& aApp )
       
   492     {
       
   493     TInt result= KErrNone;
       
   494     TRAPD(err, result = iManager->SendRtcpAppPacketL ( aTranStreamId, aApp ));
       
   495     if (err)
       
   496     	return err;
       
   497     return result;
       
   498     }
       
   499 
       
   500 // ---------------------------------------------------------------------------
       
   501 // TInt CRtpAPI::SendRtcpSrPacket()
       
   502 // 
       
   503 // ---------------------------------------------------------------------------
       
   504 //
       
   505 EXPORT_C TInt CRtpAPI::SendRtcpSrPacket( TRtpId aTranStreamId )
       
   506     {
       
   507     TInt result= KErrNone;
       
   508     TRAPD(err, result = iManager->SendRtcpSrPacketL( aTranStreamId ));
       
   509     if (err)
       
   510     	return err;
       
   511     return result;
       
   512     }
       
   513 
       
   514 // ---------------------------------------------------------------------------
       
   515 // TInt CRtpAPI::SendRtcpRrPacket()
       
   516 // 
       
   517 // ---------------------------------------------------------------------------
       
   518 //
       
   519 EXPORT_C TInt CRtpAPI::SendRtcpRrPacket( TRtpId aTranStreamId )
       
   520     {
       
   521     TInt result= KErrNone;
       
   522     TRAPD(err, result = iManager->SendRtcpRrPacketL( aTranStreamId ));
       
   523     if (err)
       
   524     	return err;
       
   525     return result;
       
   526     }
       
   527 
       
   528 // ---------------------------------------------------------------------------
       
   529 // TInt CRtpAPI::SuspendRtcpSending()
       
   530 //
       
   531 // ---------------------------------------------------------------------------
       
   532 //
       
   533 EXPORT_C TInt CRtpAPI::SuspendRtcpSending( TRtpId aSessionId,
       
   534                                            TBool aAutoSending )
       
   535     {
       
   536     return iManager->SuspendRtcpSending( aSessionId, aAutoSending );
       
   537     }
       
   538         
       
   539 // ---------------------------------------------------------------------------
       
   540 // TInt CRtpAPI::IsRtcpSendingSuspended()
       
   541 //
       
   542 // ---------------------------------------------------------------------------
       
   543 //
       
   544 EXPORT_C TInt CRtpAPI::IsRtcpSendingSuspended( TRtpId aSessionId,
       
   545                                                TBool& aAutoSending )
       
   546     {
       
   547     return iManager->IsRtcpSendingSuspended( aSessionId, aAutoSending );
       
   548     }
       
   549 
       
   550 /*****************************************************************************/ 
       
   551 /***************************** SAMPLING FUNCTIONS ****************************/ 
       
   552 /*****************************************************************************/ 
       
   553 // ---------------------------------------------------------------------------
       
   554 // TUint32 CRtpAPI::GetSamplingRate()
       
   555 // 
       
   556 // ---------------------------------------------------------------------------
       
   557 //
       
   558 EXPORT_C TUint32 CRtpAPI::GetSamplingRate( TUint8 aPayloadType )
       
   559     {
       
   560     return iManager->GetSamplingRate( aPayloadType );
       
   561     }
       
   562 
       
   563 // ---------------------------------------------------------------------------
       
   564 // TInt CRtpAPI::SetSamplingRate()
       
   565 // 
       
   566 // ---------------------------------------------------------------------------
       
   567 //
       
   568 EXPORT_C TInt CRtpAPI::SetSamplingRate( TUint8 aPayloadType, TUint32 aSampleRate )
       
   569     {
       
   570     return iManager->SetSamplingRate( aPayloadType, aSampleRate );
       
   571     }
       
   572 
       
   573 /*****************************************************************************/ 
       
   574 /****** Internal Use Function - Not In Use, Fix for Raptor *******************/ 
       
   575 /*****************************************************************************/
       
   576 // ---------------------------------------------------------------------------
       
   577 // TInt CRtpAPI::NotInUseSetNonRTPDataObserver()
       
   578 
       
   579 // ---------------------------------------------------------------------------
       
   580 //
       
   581 EXPORT_C TInt CRtpAPI::NotInUseSetNonRTPDataObserver( )
       
   582     {
       
   583     return KErrNone; 
       
   584     }
       
   585 
       
   586 
       
   587 /*****************************************************************************/ 
       
   588 /***************************** CUSTOM FUNCTIONS ******************************/ 
       
   589 /*****************************************************************************/ 
       
   590 // ---------------------------------------------------------------------------
       
   591 // TInt CRtpAPI::CustomCommandSync()
       
   592 // 
       
   593 // ---------------------------------------------------------------------------
       
   594 //
       
   595 EXPORT_C TInt CRtpAPI::CustomCommandSync( TInt /*aFunction*/,
       
   596                                           const TDesC8& /*aInputData1*/,
       
   597                                           const TDesC8& /*aInputData2*/,
       
   598                                           TDes8& /*aOutputData*/ )
       
   599     {
       
   600     return KErrNotSupported;
       
   601     }
       
   602 
       
   603 // ---------------------------------------------------------------------------
       
   604 // TInt CRtpAPI::CustomCommandAsync()
       
   605 // 
       
   606 // ---------------------------------------------------------------------------
       
   607 //
       
   608 EXPORT_C TInt CRtpAPI::CustomCommandAsync( TInt /*aFunction*/,
       
   609                                            const TDesC8& /*aInputData1*/,
       
   610                                            const TDesC8& /*aInputData2*/,
       
   611                                            TDes8& /*aOutputData*/,
       
   612                                            TRequestStatus& /*aStatus*/ )
       
   613     {
       
   614     return KErrNotSupported;
       
   615     }
       
   616 
       
   617 
       
   618 /*****************************************************************************/ 
       
   619 /******************************** DLL FUNCTIONS ******************************/ 
       
   620 /*****************************************************************************/ 
       
   621 #if !defined ( EKA2 ) && !defined ( RTP_UNIT_TEST )
       
   622 // ---------------------------------------------------------------------------
       
   623 // All E32 DLLs need an entry point...
       
   624 // DLL entry point
       
   625 // ---------------------------------------------------------------------------
       
   626 //
       
   627 GLDEF_C TInt E32Dll( TDllReason /*aReason*/ )
       
   628     {
       
   629     return ( KErrNone );
       
   630     }
       
   631 #endif
       
   632 
       
   633 //  End of File