mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/aacaudioplaycontroller/Src/AACAudioPlayControllerPlugin.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Play controller for AAC.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AACAUDIOPLAYCONTROLLERPLUGIN_H
       
    20 #define AACAUDIOPLAYCONTROLLERPLUGIN_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "AdvancedAudioPlayController.h"
       
    24 
       
    25 // FORWARD DECLARATION
       
    26 class CAACAudioPlayControllerDecoderBuilder;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  CAACAudioPlayControllerPlugin
       
    32 *
       
    33 *  @lib VBRAudioPlayController.lib
       
    34 *  @since 3.0
       
    35 */
       
    36 class CAACAudioPlayControllerPlugin : public CAdvancedAudioPlayController
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         */
       
    43         static CAACAudioPlayControllerPlugin* NewL();
       
    44 
       
    45         /**
       
    46         * Destructor
       
    47         */
       
    48         virtual ~CAACAudioPlayControllerPlugin();
       
    49         
       
    50     private:    // Functions from base classes
       
    51 
       
    52         /**
       
    53 		* From CAdvancedAudioPlayController
       
    54         * Format specific initialization for Data Source
       
    55         * @since 3.0
       
    56         * @return void
       
    57         */
       
    58         void DoAddDataSourceL();
       
    59 
       
    60         /**
       
    61 		* From CAdvancedAudioPlayController
       
    62         * Format specific initialization for Data Sink
       
    63         * @since 3.0
       
    64         * @return void
       
    65         */
       
    66         void DoAddDataSinkL();
       
    67         
       
    68         /**
       
    69 		* From CAdvancedAudioPlayController
       
    70         * Format specific header scanning
       
    71         * @since 3.1
       
    72         * @return void
       
    73         */
       
    74         void DoReadHeaderL(CMMFDataBuffer* aBuffer);
       
    75 
       
    76         /**
       
    77 		* From CAdvancedAudioPlayController
       
    78         * Instantiates the codec.
       
    79         * @since 5.0
       
    80         * @return CAdvancedAudioDecoder*
       
    81         */
       
    82         CAdvancedAudioDecoder* BuildDecoderL();
       
    83         
       
    84     protected:  // from base class
       
    85     
       
    86     private:
       
    87         /**
       
    88         * C++ default constructor.
       
    89         */
       
    90         CAACAudioPlayControllerPlugin();
       
    91 
       
    92         /**
       
    93         * By default Symbian 2nd phase constructor is private.
       
    94         */
       
    95         void ConstructL();
       
    96 
       
    97     private: // Data
       
    98 
       
    99     	// Builder for AAC decoder object
       
   100     	CAACAudioPlayControllerDecoderBuilder* iDecoderBuilder;
       
   101 
       
   102     };
       
   103 
       
   104 #endif	// AACAUDIOPLAYCONTROLLERPLUGIN_H
       
   105 
       
   106 // End of File
       
   107