mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/aacaudioplaycontroller/Src/AACAudioPlayControllerDecoderBuilder.cpp
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2004 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:  This is a builder class for decoder object.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include	"AACAudioPlayControllerDecoderBuilder.h"
       
    22 #include	"AACAudioPlayControllerDecoder.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CAACAudioPlayControllerDecoderBuilder::CAACAudioPlayControllerDecoderBuilder
       
    28 // C++ default constructor can NOT contain any code, that
       
    29 // might leave.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 CAACAudioPlayControllerDecoderBuilder::CAACAudioPlayControllerDecoderBuilder()
       
    33     {
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CAACAudioPlayControllerDecoderBuilder::ConstructL
       
    38 // Symbian 2nd phase constructor can leave.
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 void CAACAudioPlayControllerDecoderBuilder::ConstructL()
       
    42 	{
       
    43 #ifdef _DEBUG
       
    44 	RDebug::Print(_L("CAACAudioPlayControllerDecoderBuilder::ConstructL"));
       
    45 #endif
       
    46 	}
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CAACAudioPlayControllerDecoderBuilder::NewL
       
    50 // Two-phased constructor.
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 CAACAudioPlayControllerDecoderBuilder* CAACAudioPlayControllerDecoderBuilder::NewL()
       
    54 	{
       
    55 #ifdef _DEBUG
       
    56 	RDebug::Print(_L("CAACAudioPlayControllerDecoderBuilder::NewL"));
       
    57 #endif
       
    58 	CAACAudioPlayControllerDecoderBuilder* self = new(ELeave) CAACAudioPlayControllerDecoderBuilder();
       
    59 	CleanupStack::PushL(self);
       
    60 	self->ConstructL();
       
    61 	CleanupStack::Pop(self); // self
       
    62 	return self;
       
    63 	}
       
    64 
       
    65 // Destructor
       
    66 CAACAudioPlayControllerDecoderBuilder::~CAACAudioPlayControllerDecoderBuilder()
       
    67 	{
       
    68 	}
       
    69 
       
    70 // -----------------------------------------------------------------------------
       
    71 // CAACAudioPlayControllerDecoderBuilder::BuildDecoderL
       
    72 // Creates a decoder of specified type.
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 CAdvancedAudioDecoder* CAACAudioPlayControllerDecoderBuilder::BuildDecoderL(
       
    76 	TInt /*aType*/ )
       
    77 	{
       
    78 #ifdef _DEBUG
       
    79 	RDebug::Print(_L("CAACAudioPlayControllerDecoderBuilder::BuildDecoderL"));
       
    80 #endif
       
    81 	// For CMMFCodec version, we use same decoder for play and conversion
       
    82 	CAACAudioPlayControllerDecoder* decoder = CAACAudioPlayControllerDecoder::NewL();
       
    83 	return decoder;
       
    84 	}
       
    85 
       
    86 //  End of File