sl@0: // Copyright (c) 2002-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: // include\mmf\common\mmfutilitiespriv.h sl@0: // sl@0: // sl@0: sl@0: #ifndef MMFUTILITIESPRIV_H sl@0: #define MMFUTILITIESPRIV_H sl@0: sl@0: #include sl@0: sl@0: #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS sl@0: #include sl@0: #endif sl@0: sl@0: sl@0: class CChannelAndSampleRateConverter; sl@0: sl@0: /* sl@0: version of CMMFChannelAndSampleRateConverter that is implemented as adaptor to sl@0: CChannelAndSampleRateConverter class sl@0: */ sl@0: NONSHARABLE_CLASS (CMMFForwardingChannelAndSampleRateConverter) : public CMMFChannelAndSampleRateConverter sl@0: { sl@0: public: sl@0: static CMMFForwardingChannelAndSampleRateConverter* NewL(TInt aFromRate,TInt aFromChannels, sl@0: TInt aToRate,TInt aToChannels); sl@0: sl@0: ~CMMFForwardingChannelAndSampleRateConverter(); sl@0: sl@0: protected: sl@0: CMMFForwardingChannelAndSampleRateConverter(); sl@0: void ConstructL(TInt aFromRate,TInt aFromChannels, sl@0: TInt aToRate,TInt aToChannels); sl@0: sl@0: // from CMMFChannelAndSampleRateConverter sl@0: TInt Convert(const CMMFDataBuffer& aSrcBuffer, CMMFDataBuffer& aDstBuffer); sl@0: void Reset(); sl@0: TUint MaxConvertBufferSize(TUint aSrcBufferSize); sl@0: sl@0: private: sl@0: CChannelAndSampleRateConverter* iRealConverter; sl@0: }; sl@0: sl@0: #endif