sl@0: // Copyright (c) 2005-2009 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: sl@0: // sl@0: sl@0: sl@0: #ifndef PCMPROCESSINGUNIT_H sl@0: #define PCMPROCESSINGUNIT_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: class CPcmOutputPort; sl@0: class CPcmInputPort; sl@0: sl@0: enum TPcmDataType sl@0: { sl@0: EPCM8, sl@0: EPCMU8, sl@0: EPCM16 sl@0: }; sl@0: sl@0: class CPcmProcessingUnit : public COmxProcessingUnit sl@0: { sl@0: public: sl@0: // entry points for each codec variant sl@0: static CPcmProcessingUnit* NewP8P16L(); sl@0: static CPcmProcessingUnit* NewP16P8L(); sl@0: static CPcmProcessingUnit* NewPU8P16L(); sl@0: static CPcmProcessingUnit* NewP16PU8L(); sl@0: sl@0: virtual TInt Create(const MMdfProcessingUnitObserver& aProcessingUnitObserver); sl@0: sl@0: virtual TInt Configure(const TPuConfig& aConfigurationSetup); sl@0: virtual ~CPcmProcessingUnit(); sl@0: sl@0: private: sl@0: CPcmProcessingUnit(); sl@0: void ConstructL(TPcmDataType aSrcDataType, TPcmDataType aDestDataType); sl@0: sl@0: private: sl@0: CPcmInputPort* iInputPort; sl@0: CPcmOutputPort* iOutputPort; sl@0: sl@0: TPcmDataType iSrcDataType; sl@0: TPcmDataType iDestDataType; sl@0: }; sl@0: sl@0: #endif // PCMPROCESSINGUNIT_H sl@0: sl@0: sl@0: