mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/mp3audioplaycontroller/Src/MP3AudioPlayControllerDecoderBuilder.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	"MP3AudioPlayControllerDecoderBuilder.h"
       
    22 #include	"MP3AudioPlayControllerDecoder.h"
       
    23 #include "DebugMacros.h"
       
    24 
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CMP3AudioPlayControllerDecoderBuilder::CMP3AudioPlayControllerDecoderBuilder
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 CMP3AudioPlayControllerDecoderBuilder::CMP3AudioPlayControllerDecoderBuilder()
       
    35     {
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CMP3AudioPlayControllerDecoderBuilder::ConstructL
       
    40 // Symbian 2nd phase constructor can leave.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 void CMP3AudioPlayControllerDecoderBuilder::ConstructL()
       
    44 	{
       
    45 	DP0(_L("CMP3AudioPlayControllerDecoderBuilder::ConstructL"));
       
    46 	}
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CMP3AudioPlayControllerDecoderBuilder::NewL
       
    50 // Two-phased constructor.
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 CMP3AudioPlayControllerDecoderBuilder* CMP3AudioPlayControllerDecoderBuilder::NewL()
       
    54 	{
       
    55 	DP0(_L("CMP3AudioPlayControllerDecoderBuilder::NewL"));
       
    56 	CMP3AudioPlayControllerDecoderBuilder* self = new(ELeave) CMP3AudioPlayControllerDecoderBuilder();
       
    57 	CleanupStack::PushL(self);
       
    58 	self->ConstructL();
       
    59 	CleanupStack::Pop(self); // self
       
    60 	return self;
       
    61 	}
       
    62 
       
    63 // Destructor
       
    64 CMP3AudioPlayControllerDecoderBuilder::~CMP3AudioPlayControllerDecoderBuilder()
       
    65 	{
       
    66 	}
       
    67 
       
    68 // -----------------------------------------------------------------------------
       
    69 // CMP3AudioPlayControllerDecoderBuilder::BuildDecoderL
       
    70 // Creates a decoder of specified type.
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 CAdvancedAudioDecoder* CMP3AudioPlayControllerDecoderBuilder::BuildDecoderL(
       
    74 	TInt /*aType*/ )
       
    75 	{
       
    76 	DP0(_L("CMP3AudioPlayControllerDecoderBuilder::BuildDecoderL"));
       
    77 	// For CMMFCodec version, we use same decoder for play and conversion
       
    78 	CMP3AudioPlayControllerDecoder* decoder = CMP3AudioPlayControllerDecoder::NewL();
       
    79 	return decoder;
       
    80 	}
       
    81 
       
    82 //  End of File