multimediacommscontroller/mmccsubcontroller/src/mccdtmfdlstream.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006-2008 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:    Provides DTMF support
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include <mmf/server/mmfformat.h>
       
    22 #include "mccdtmfdlstream.h"
       
    23 #include "mccsubcontrollerlogs.h"
       
    24 #include "mccdatasource.h"
       
    25 #include "mcccodecconfigurator.h"
       
    26 #include "mccrtpmanager.h"
       
    27 #include "mccrtpmediaclock.h"
       
    28 #include "mccmultiplexer.h"
       
    29 #include "mccresources.h"
       
    30 #include "mccinternaldef.h"
       
    31 #include "mccrtpdatasource.h"
       
    32 
       
    33 
       
    34 // ======== MEMBER FUNCTIONS ========
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // C++ default constructor can NOT contain any code, that might leave.
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 CMccDtmfDlStream::CMccDtmfDlStream( TUint32 aMccStreamId, 
       
    41         MAsyncEventHandler* aEventhandler, MMccResources* aMccResources,
       
    42         CMccRtpManager* aManager, TFourCC aFourCC, TInt aStreamType,
       
    43         CMccRtpMediaClock& aClock )
       
    44     :
       
    45     CMccSymStreamBase( aMccStreamId, aEventhandler, aMccResources, aManager, 
       
    46         aStreamType ), iFourCC( aFourCC )
       
    47     {
       
    48     iRtpMediaClock = &aClock;
       
    49     }
       
    50 
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // Symbian 2nd phase constructor can leave.
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 void CMccDtmfDlStream::ConstructL()
       
    57     {
       
    58 	__SUBCONTROLLER( "CMccDtmfDlStream::ConstructL" )
       
    59 	__SUBCONTROLLER( "CMccDtmfDlStream::ConstructL, exit" )
       
    60     }
       
    61 
       
    62 
       
    63 // ---------------------------------------------------------------------------
       
    64 // Two-phased constructor.
       
    65 // ---------------------------------------------------------------------------
       
    66 //
       
    67 CMccDtmfDlStream* CMccDtmfDlStream::NewL( TUint32 aMccStreamId, 
       
    68         MAsyncEventHandler* aEventHandler, MMccResources* aMccResources,
       
    69         CMccRtpManager* aManager, TFourCC aFourCC, TInt aStreamType,
       
    70         CMccRtpMediaClock& aClock )
       
    71     {
       
    72     CMccDtmfDlStream* self = CMccDtmfDlStream::NewLC( aMccStreamId, aEventHandler,
       
    73         aMccResources, aManager, aFourCC, aStreamType, aClock );
       
    74     CleanupStack::Pop( self );
       
    75     return self;
       
    76     }
       
    77 
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // Two-phased constructor.
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 CMccDtmfDlStream* CMccDtmfDlStream::NewLC( TUint32 aMccStreamId, 
       
    84         MAsyncEventHandler* aEventHandler, MMccResources* aMccResources,
       
    85         CMccRtpManager* aManager, TFourCC aFourCC, TInt aStreamType,
       
    86         CMccRtpMediaClock& aClock )
       
    87     {
       
    88     CMccDtmfDlStream* self = new( ELeave ) CMccDtmfDlStream( aMccStreamId,
       
    89         aEventHandler, aMccResources, aManager, aFourCC, aStreamType, aClock );
       
    90     CleanupStack::PushL( self );
       
    91     self->ConstructL();
       
    92     return self;
       
    93     }
       
    94 
       
    95 
       
    96 // ---------------------------------------------------------------------------
       
    97 // Destructor.
       
    98 // ---------------------------------------------------------------------------
       
    99 //
       
   100 CMccDtmfDlStream::~CMccDtmfDlStream()
       
   101     {
       
   102     __SUBCONTROLLER( "CMccDtmfDlStream::~CMccDtmfDlStream" )
       
   103     
       
   104     // Must do mux cleanup before decoder (mux sink) deletion
       
   105     MultiplexerCleanup();
       
   106     
       
   107     if ( iFormatDecode )
       
   108         {
       
   109         iFormatDecode->SourceThreadLogoff();
       
   110         delete iFormatDecode;
       
   111         }
       
   112 
       
   113     __SUBCONTROLLER( "CMccDtmfDlStream::~CMccDtmfDlStream, exit" )
       
   114     }
       
   115 
       
   116 // ---------------------------------------------------------------------------
       
   117 // From class CMccSymStreamBase.
       
   118 // Sets the MMF priority settings for this stream.
       
   119 // ---------------------------------------------------------------------------
       
   120 //
       
   121 void CMccDtmfDlStream::SetPrioritySettingsL( 
       
   122         const TMMFPrioritySettings& aPriority )
       
   123     {
       
   124     __SUBCONTROLLER( "CMccDtmfDlStream::SetPrioritySettingsL start" );
       
   125     
       
   126     if ( iFormatDecode )
       
   127         {
       
   128         iFormatDecode->SetSourcePrioritySettings( aPriority );
       
   129         }
       
   130     
       
   131     __SUBCONTROLLER( "CMccDtmfDlStream::SetPrioritySettingsL end ");
       
   132     }
       
   133 
       
   134 // ---------------------------------------------------------------------------
       
   135 // From class CMccSymStreamBase.
       
   136 // Adds the sink and source to the stream.
       
   137 // ---------------------------------------------------------------------------
       
   138 //
       
   139 void CMccDtmfDlStream::AddSinkAndSourceL( MDataSink* aDataSink,
       
   140         MDataSource* aDataSource )
       
   141     {
       
   142 	__SUBCONTROLLER( "CMccDtmfDlStream::AddSinkAndSourceL" )
       
   143     __ASSERT_ALWAYS( aDataSink && aDataSource, User::Leave( KErrArgument ) );
       
   144     
       
   145     __ASSERT_ALWAYS( aDataSink->DataSinkType() == KMccAnySinkUid,
       
   146         User::Leave( KErrArgument ) );
       
   147     __ASSERT_ALWAYS( aDataSource->DataSourceType() == KMccRtpSourceUid,
       
   148         User::Leave( KErrArgument ) );
       
   149     
       
   150 	__SUBCONTROLLER( "CMccDtmfDlStream::AddSinkAndSourceL, adding" )
       
   151 	iDatasink = aDataSink;
       
   152 	iDatasource = aDataSource;
       
   153 	
       
   154 	iMultiplexer = iMccResources->MultiplexerL( iDatasource );
       
   155     
       
   156     User::LeaveIfError( iDatasink->SinkThreadLogon( *this ) );
       
   157     
       
   158     __SUBCONTROLLER( "CMccDtmfDlStream::AddSinkAndSourceL, exit" )
       
   159     }
       
   160 
       
   161 // ---------------------------------------------------------------------------
       
   162 // From class CMccSymStreamBase.
       
   163 // Loads a codec to the stream.
       
   164 // ---------------------------------------------------------------------------
       
   165 //
       
   166 void CMccDtmfDlStream::LoadCodecL( const TMccCodecInfo& aCodecInfo, 
       
   167         const TDesC8& aFmtp )
       
   168     {
       
   169     __SUBCONTROLLER_INT1( "CMccDtmfDlStream::LoadCodecL, codec state:", 
       
   170                           CurrentCodecState() )
       
   171     
       
   172     __ASSERT_ALWAYS( CurrentCodecState() == EStateCodecNone || 
       
   173                      iCodecInfo.iFourCC == aCodecInfo.iFourCC,
       
   174                      User::Leave( KErrArgument ) );
       
   175     __ASSERT_ALWAYS( iDatasink, User::Leave( KErrNotReady ) );
       
   176         
       
   177     iCodecInfo = aCodecInfo;
       
   178     
       
   179     if ( CurrentCodecState() == EStateCodecNone )
       
   180         {
       
   181         delete iFmtpAttr;
       
   182         iFmtpAttr = NULL;
       
   183 
       
   184     	iFmtpAttr = HBufC8::NewL( aFmtp.Length() );
       
   185         iFmtpAttr->Des().Copy( aFmtp );
       
   186         
       
   187         iCodecInfo.iFmtpLength = iFmtpAttr->Length();
       
   188         CreatePayloadFormatDecoderL();
       
   189         
       
   190         iMultiplexer->NegotiateSourceL( *iFormatDecode );
       
   191         
       
   192         SetCodecState( EStateCodecNegotiated );        	
       
   193         }
       
   194     else if ( CurrentCodecState() == EStateCodecNegotiated )
       
   195         {
       
   196         SetCodecState( EStateCodecLoaded );
       
   197         
       
   198         // Codec is not fully usable yet, do just formatter initialization
       
   199         MccCodecConfigurator::ConfigureCodecL( *iFormatDecode, 
       
   200                                                 *iDatasink, 
       
   201                                                 iCodecInfo,
       
   202                                                 *iRtpMediaClock,
       
   203                                                 CurrentCodecState() );
       
   204         }
       
   205     else if ( CurrentCodecState() == EStateCodecLoaded ||
       
   206               CurrentCodecState() == EStateCodecLoadedAndUpdating )
       
   207         {
       
   208         // Update codec info
       
   209         SetCodecState( EStateCodecLoadedAndUpdating );
       
   210     	UpdateCodecInformationL( iCodecInfo );
       
   211         }
       
   212     else
       
   213         {
       
   214         User::Leave( KErrNotReady );
       
   215         }
       
   216         
       
   217     __SUBCONTROLLER_INT1( "CMccDtmfDlStream::LoadCodecL, exit, new state:", 
       
   218                           CurrentCodecState() )
       
   219     }
       
   220 
       
   221 // ---------------------------------------------------------------------------
       
   222 // From class CMccSymStreamBase.
       
   223 // Primes the stream ready.
       
   224 // ---------------------------------------------------------------------------
       
   225 //
       
   226 void CMccDtmfDlStream::PrimeL( const TUint32 aEndpointId )
       
   227     {
       
   228 	__SUBCONTROLLER( "CMccDtmfDlStream::PrimeL" )
       
   229     __ASSERT_ALWAYS( iFormatDecode, User::Leave( KErrNotReady ) );
       
   230 	
       
   231     TBool controlNetworkResources = SetStateL( EStatePrepared, aEndpointId );  
       
   232     
       
   233     if ( controlNetworkResources )
       
   234         {
       
   235         iRtpmanager->CreateReceiveStreamL( *iDatasource, iCodecInfo );
       
   236         }
       
   237         
       
   238     LoadCodecL( iCodecInfo, KNullDesC8 );
       
   239     
       
   240     if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) )
       
   241         {
       
   242         iDatasink->SinkPrimeL();
       
   243         }
       
   244     
       
   245     if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) )
       
   246         {
       
   247         iFormatDecode->SourcePrimeL();
       
   248         }
       
   249 
       
   250     InformStreamStateChange( KMccStreamPrepared, aEndpointId );
       
   251     
       
   252 	__SUBCONTROLLER( "CMccDtmfDlStream::PrimeL, exit" )
       
   253     }
       
   254 
       
   255 // ---------------------------------------------------------------------------
       
   256 // From class CMccSymStreamBase.
       
   257 // Starts the stream. DTMF can be now sent and received.
       
   258 // ---------------------------------------------------------------------------
       
   259 //
       
   260 void CMccDtmfDlStream::PlayL( 
       
   261     const TUint32 aEndpointId, 
       
   262     TBool /*aStreamPaused*/, 
       
   263     TBool /*aEnableRtcp*/ )
       
   264     {
       
   265 	__SUBCONTROLLER( "CMccDtmfDlStream::PlayL" )
       
   266     __ASSERT_ALWAYS( iFormatDecode && iDatasource && iDatasink, 
       
   267                      User::Leave( KErrNotReady ) );
       
   268 	
       
   269     TBool controlNetworkResources = SetStateL( EStateStreaming, aEndpointId );
       
   270     
       
   271     if ( controlNetworkResources )
       
   272         {
       
   273         iRtpmanager->StartSessionL();
       
   274         }
       
   275     
       
   276     LoadCodecL( iCodecInfo, KNullDesC8 );
       
   277     
       
   278     if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) )
       
   279         {
       
   280         iDatasink->SinkPlayL();
       
   281         }
       
   282     
       
   283     if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) )
       
   284         {
       
   285         iFormatDecode->SourcePlayL();
       
   286         }
       
   287         
       
   288     // Dtmf does not need standby, deactivate it
       
   289     CMccRtpDataSource* dSource = static_cast<CMccRtpDataSource*>( iDatasource );
       
   290     dSource->StandBy( EDeactivateStandby, iCodecInfo.iPayloadType );
       
   291 
       
   292     InformStreamStateChange( KMccStreamStarted, aEndpointId );
       
   293     
       
   294 	__SUBCONTROLLER( "CMccDtmfDlStream::PlayL, exit" )
       
   295     }
       
   296 
       
   297 // ---------------------------------------------------------------------------
       
   298 // From class CMccSymStreamBase.
       
   299 // Pauses the stream. DTMF sending and receiving are not possible in paused
       
   300 // state.
       
   301 // ---------------------------------------------------------------------------
       
   302 //
       
   303 void CMccDtmfDlStream::PauseL( const TUint32 aEndpointId, TBool /*aEnableRtcp*/ )
       
   304     {
       
   305     __SUBCONTROLLER( "CMccDtmfDlStream::PauseL" )
       
   306     __ASSERT_ALWAYS( iFormatDecode && iDatasource && iDatasink, 
       
   307                      User::Leave( KErrNotReady ) );
       
   308     
       
   309     SetStateL( EStatePaused, aEndpointId );
       
   310     
       
   311     if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) )
       
   312         {
       
   313         iDatasink->SinkPauseL();
       
   314         }
       
   315     
       
   316     if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) )
       
   317         {
       
   318         iFormatDecode->SourcePauseL();
       
   319         }
       
   320     
       
   321     InformStreamStateChange( KMccStreamPaused, aEndpointId );
       
   322     
       
   323     __SUBCONTROLLER( "CMccDtmfDlStream::PauseL, exit" )
       
   324     }
       
   325 
       
   326 // ---------------------------------------------------------------------------
       
   327 // From class CMccSymStreamBase.
       
   328 // Resumes the stream.
       
   329 // ---------------------------------------------------------------------------
       
   330 //
       
   331 void CMccDtmfDlStream::ResumeL( const TUint32 aEndpointId, TBool /*aEnableRtcp*/ )
       
   332     {
       
   333     __SUBCONTROLLER( "CMccDtmfDlStream::ResumeL" )
       
   334     __ASSERT_ALWAYS( iFormatDecode && iDatasource && iDatasink, 
       
   335                      User::Leave( KErrNotReady ) );
       
   336     
       
   337     SetStateL( EStateStreaming, aEndpointId );
       
   338     
       
   339     if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) )
       
   340         {
       
   341         iDatasink->SinkPlayL();
       
   342         }
       
   343     
       
   344     if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) )
       
   345         {
       
   346         iFormatDecode->SourcePlayL();
       
   347         }
       
   348     
       
   349     InformStreamStateChange( KMccStreamResumed, aEndpointId );
       
   350 
       
   351     __SUBCONTROLLER( "CMccDtmfDlStream::ResumeL, exit" )
       
   352     }
       
   353 
       
   354 // ---------------------------------------------------------------------------
       
   355 // From class CMccSymStreamBase.
       
   356 // Stops the stream.
       
   357 // ---------------------------------------------------------------------------
       
   358 //
       
   359 void CMccDtmfDlStream::StopL( const TUint32 aEndpointId )
       
   360     {
       
   361     __SUBCONTROLLER( "CMccDtmfDlStream::StopL" )
       
   362     __ASSERT_ALWAYS( iFormatDecode && iDatasource && iDatasink, 
       
   363                      User::Leave( KErrNotReady ) );
       
   364     
       
   365     SetStateL( EStateStopped, aEndpointId );
       
   366     
       
   367     if ( IsControlled( MCC_ENDPOINT_ID( iDatasink ) ) )
       
   368         {
       
   369         iDatasink->SinkStopL();
       
   370         }
       
   371     
       
   372     if ( IsControlled( MCC_ENDPOINT_ID( iDatasource ) ) )
       
   373         {
       
   374         iFormatDecode->SourceStopL();
       
   375         }
       
   376     
       
   377     InformStreamStateChange( KMccStreamStopped, aEndpointId );
       
   378     
       
   379     __SUBCONTROLLER( "CMccDtmfDlStream::StopL, exit" )
       
   380     }
       
   381 
       
   382 // ---------------------------------------------------------------------------
       
   383 // From class CMccSymStreamBase.
       
   384 // Resets jitterbuffer.
       
   385 // ---------------------------------------------------------------------------
       
   386 //
       
   387 void CMccDtmfDlStream::ResetCountersL()
       
   388     {
       
   389     __SUBCONTROLLER( "CMccDtmfDlStream::ResetCountersL - NO_OP" )
       
   390     }
       
   391 
       
   392 // ---------------------------------------------------------------------------
       
   393 // From class CMccSymStreamBase.
       
   394 // Sets the current record/play balance depending on the stream type.
       
   395 // ---------------------------------------------------------------------------
       
   396 //
       
   397 void CMccDtmfDlStream::SetBalanceL( TInt /*aLeftbal*/, TInt /*aRightbal*/ )
       
   398     {
       
   399     __SUBCONTROLLER( "CMccDtmfDlStream::SetBalanceL - NO_OP" )
       
   400     }
       
   401 
       
   402 // ---------------------------------------------------------------------------
       
   403 // From class CMccSymStreamBase.
       
   404 // Gets the current record/play balance depending on the stream type
       
   405 // ---------------------------------------------------------------------------
       
   406 //
       
   407 void CMccDtmfDlStream::GetBalanceL( TInt& /*aLeftbal*/, TInt& /*aRightbal*/ )
       
   408     {
       
   409     __SUBCONTROLLER( "CMccDtmfDlStream::GetBalanceL - NO_OP" )
       
   410     }
       
   411 
       
   412 // ---------------------------------------------------------------------------
       
   413 // From class CMccSymStreamBase.
       
   414 // Starts inactivity timer for a stream in a given session.
       
   415 // ---------------------------------------------------------------------------
       
   416 //
       
   417 void CMccDtmfDlStream::StartInactivityTimerL( TUint32 /*aTimeoutTime*/ )
       
   418     {
       
   419     __SUBCONTROLLER( "CMccDtmfDlStream::StartInactivityTimerL - NO_OP" )
       
   420     // TBD: Should be pointed once to the RTP source endpoint
       
   421     };
       
   422 
       
   423 // ---------------------------------------------------------------------------
       
   424 // From class CMccSymStreamBase.
       
   425 // Stops inactivity timer for a stream in a given session.
       
   426 // ---------------------------------------------------------------------------
       
   427 void CMccDtmfDlStream::StopInactivityTimerL()
       
   428     {
       
   429     __SUBCONTROLLER( "CMccDtmfDlStream::StopInactivityTimerL - NO_OP" )
       
   430     // TBD: Should be pointed once to the RTP source endpoint
       
   431     }
       
   432 
       
   433 // ---------------------------------------------------------------------------
       
   434 // From class CMccSymStreamBase.
       
   435 // Get synchronization source identifier used by this stream.
       
   436 // ---------------------------------------------------------------------------
       
   437 //
       
   438 void CMccDtmfDlStream::GetSSRCL( TUint32& /*aSSRCValue*/ )
       
   439     {
       
   440     __SUBCONTROLLER( "CMccDtmfDlStream::GetSSRCL" )
       
   441     
       
   442     User::Leave( KErrNotSupported );
       
   443     }
       
   444 
       
   445 // ---------------------------------------------------------------------------
       
   446 // From class CMccSymStreamBase.
       
   447 // 
       
   448 // ---------------------------------------------------------------------------
       
   449 //
       
   450 TBool CMccDtmfDlStream::IsUplink()
       
   451     {
       
   452     __SUBCONTROLLER( "CMccDtmfDlStream::IsUplink" )
       
   453     
       
   454     return EFalse;
       
   455     }
       
   456 
       
   457 // ---------------------------------------------------------------------------
       
   458 // From class CMccSymStreamBase.
       
   459 // 
       
   460 // ---------------------------------------------------------------------------
       
   461 //
       
   462 void CMccDtmfDlStream::StandByL()
       
   463     {
       
   464     __SUBCONTROLLER( "CMccDtmfDlStream::StandByL" )
       
   465     }
       
   466 
       
   467 // -----------------------------------------------------------------------------
       
   468 // CMccDtmfDlStream::CreatePayloadFormatDecoderL
       
   469 // Creates a payload format decoder for DTMF payload decoding.
       
   470 // -----------------------------------------------------------------------------
       
   471 //
       
   472 void CMccDtmfDlStream::CreatePayloadFormatDecoderL()
       
   473     {
       
   474 	__SUBCONTROLLER( "CMccDtmfDlStream::CreatePayloadFormatDecoderL" )
       
   475 	__ASSERT_ALWAYS( iMultiplexer, User::Leave( KErrNotReady ) );
       
   476 	__ASSERT_ALWAYS( NULL == iFormatDecode, User::Leave( KErrAlreadyExists ) );
       
   477 	
       
   478     TUid formatuid;
       
   479     formatuid.iUid = static_cast<TInt32>( iCodecInfo.iPayloadFormatDecoder );
       
   480     iFormatDecode = CMMFFormatDecode::NewL( formatuid, iMultiplexer );
       
   481 	iFormatDecode->SetSourceDataTypeCode( iCodecInfo.iFourCC, Type() );
       
   482     
       
   483     User::LeaveIfError( iFormatDecode->SourceThreadLogon( *this ) );
       
   484     iFormatDecode->SetSourcePrioritySettings( iPrioritySettings );
       
   485     
       
   486     User::LeaveIfError( 
       
   487         iMultiplexer->MultiplexerSourceThreadLogon( 
       
   488         *this, *iFormatDecode, ETrue, Type(), EFalse ) );
       
   489     
       
   490     RArray<TUint> payloads;
       
   491     CleanupClosePushL( payloads );
       
   492     ParsePayloadTypesL( payloads, iCodecInfo );
       
   493     iMultiplexer->RegClientForPayloadsL( *iFormatDecode, payloads );
       
   494     CleanupStack::PopAndDestroy( &payloads );
       
   495     
       
   496 	__SUBCONTROLLER( "CMccDtmfDlStream::CreatePayloadFormatDecoderL, exit" )
       
   497     }
       
   498     
       
   499 // -----------------------------------------------------------------------------
       
   500 // CMccDtmfDlStreams::UpdateCodecInformationL
       
   501 // Updates codec parameters dynamically.
       
   502 // -----------------------------------------------------------------------------
       
   503 //
       
   504 void CMccDtmfDlStream::UpdateCodecInformationL( TMccCodecInfo& aCodecInfo )
       
   505     {
       
   506 	__SUBCONTROLLER( "CMccDtmfDlStream::UpdateCodecInformationL" )
       
   507     __ASSERT_ALWAYS( iFormatDecode, User::Leave( KErrNotReady ) );
       
   508     __ASSERT_ALWAYS( iDatasink, User::Leave( KErrNotReady ) );
       
   509     
       
   510     MccCodecConfigurator::ConfigureCodecL( *iFormatDecode, 
       
   511         *iDatasink, aCodecInfo, *iRtpMediaClock, CurrentCodecState() );
       
   512     
       
   513 	__SUBCONTROLLER( "CMccDtmfDlStream::UpdateCodecInformationL, exit" )
       
   514     }
       
   515 
       
   516 // -----------------------------------------------------------------------------
       
   517 // CMccDtmfDlStream::MultiplexerSink
       
   518 // -----------------------------------------------------------------------------
       
   519 //
       
   520 MDataSink* CMccDtmfDlStream::MultiplexerSink()
       
   521     {
       
   522     __SUBCONTROLLER( "CMccDtmfDlStream::MultiplexerSink" )
       
   523     return iFormatDecode;
       
   524     }