sl@0: /*
sl@0: * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). 
sl@0: * All rights reserved.
sl@0: * This component and the accompanying materials are made available
sl@0: * under the terms of "Eclipse Public License v1.0"
sl@0: * which accompanies this distribution, and is available
sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: *
sl@0: * Initial Contributors:
sl@0: * Nokia Corporation - initial contribution.
sl@0: *
sl@0: * Contributors:
sl@0: *
sl@0: * Description:  Used to configure the AAC decoder.
sl@0: *
sl@0: */
sl@0: 
sl@0: 
sl@0: #ifndef CAACDECODERCONFIG_H
sl@0: #define CAACDECODERCONFIG_H
sl@0: 
sl@0: // INCLUDES
sl@0: #include <e32base.h>
sl@0: #include <AudioConfig.h>
sl@0: 
sl@0: // CONSTANTS
sl@0: const TUid KUidAacDecoderConfig = {0x10207AAE};
sl@0: 
sl@0: // MACROS
sl@0: 
sl@0: // DATA TYPES
sl@0: 
sl@0: // FUNCTION PROTOTYPES
sl@0: 
sl@0: // FORWARD DECLARATIONS
sl@0: class CMMFDevSound;
sl@0: class CMdaAudioOutputStream;
sl@0: 
sl@0: // CLASS DECLARATION
sl@0: 
sl@0: /**
sl@0: *  Interface for sending configuration info to AAC decoder.
sl@0: *  This abstract class just provides the static NewL function for the creation
sl@0: *  of the proxy, and also defines the custom interface to be implemented by the
sl@0: *  proxy and the real custom interface implementation.
sl@0: *
sl@0: *  @lib AacDecoderConfig.lib
sl@0: *  @since S60 3.0
sl@0: */
sl@0: class CAacDecoderConfig : public CBase
sl@0: 	{
sl@0:     public:  // Constructors and destructor
sl@0:         
sl@0:         /**
sl@0:         * Creates the interface.
sl@0:         */
sl@0: 		IMPORT_C static CAacDecoderConfig* 
sl@0: 		                NewL(CMMFDevSound& aDevSound);
sl@0:         
sl@0:         /**
sl@0:         * Creates the interface.
sl@0:         */
sl@0: 		IMPORT_C static CAacDecoderConfig* 
sl@0: 		                NewL(CMdaAudioOutputStream& aUtility);
sl@0: 
sl@0:     public: // New functions
sl@0:         /**
sl@0:         * Configures the decoder for decoding raw AAC data.
sl@0:         * @since S60 3.0
sl@0:         * @param aAudioConfig stucture defining configuration information.
sl@0:         * @return status
sl@0:         */
sl@0: 		IMPORT_C virtual TInt SetAudioConfig(TAudioConfig& aAudioConfig) = 0;
sl@0:         
sl@0:     public: // Functions from base classes
sl@0:     protected:  // New functions
sl@0:     protected:  // Functions from base classes
sl@0:     private:
sl@0: 
sl@0:     public:     // Data
sl@0:     protected:  // Data
sl@0:     private:    // Data
sl@0:     public:     // Friend classes
sl@0:     protected:  // Friend classes
sl@0:     private:    // Friend classes
sl@0: 
sl@0: 	};
sl@0: 
sl@0: #endif      // CAACDECODERCONFIGCI_H
sl@0:             
sl@0: // End of File