devsound/devsoundrefplugin/tsrc/swcdwrap/TSU_SWCDWRAP_TestDevice/TSU_MMF_SWCDWRAP_TestDevice.h
changeset 0 79dd3e2336a0
equal deleted inserted replaced
-1:000000000000 0:79dd3e2336a0
       
     1 /*
       
     2 * Copyright (c) 2003 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __TSU_MMF_SWCDWRAP_TESTDEVICE_H__
       
    19 #define __TSU_MMF_SWCDWRAP_TESTDEVICE_H__
       
    20 
       
    21 
       
    22 #include <mmf/server/mmfswcodecwrapper.h>
       
    23 
       
    24 
       
    25 const TInt KTestBufferSize = 0x2000;
       
    26 const TInt KTest2To1SourceBufferSize = 8192; // these values make sense for current a3f adaptation, but are adaptation specific
       
    27 const TInt KTest2To1SinkBufferSize = 4096;
       
    28 
       
    29 class CMMFTestNullDevice : public CMMFSwCodecWrapper
       
    30 	{
       
    31 public:
       
    32 	static CMMFTestNullDevice* NewL();
       
    33 	virtual CMMFSwCodec& Codec();
       
    34     inline ~CMMFTestNullDevice(); 
       
    35 private:
       
    36 	void ConstructL();
       
    37 	};
       
    38 
       
    39 
       
    40 class CMMFTestNullCodec : public CMMFSwCodec
       
    41 	{
       
    42 public:
       
    43 	virtual TCodecProcessResult ProcessL(const CMMFBuffer& /*aSource*/, CMMFBuffer& /*aDest*/);
       
    44 	virtual TUint SourceBufferSize() {return KTestBufferSize;};
       
    45 	virtual TUint SinkBufferSize() {return KTestBufferSize;};
       
    46 	virtual TBool IsNullCodec() {return ETrue;};
       
    47 	};
       
    48 
       
    49 
       
    50 class CMMFTest2To1Device : public CMMFSwCodecWrapper
       
    51 	{
       
    52 public:
       
    53 	static CMMFTest2To1Device* NewL();
       
    54 	virtual CMMFSwCodec& Codec();
       
    55     inline ~CMMFTest2To1Device(); 
       
    56 private:
       
    57 	void ConstructL();
       
    58 	};
       
    59 
       
    60 
       
    61 class CMMFTest2To1Codec : public CMMFSwCodec
       
    62 	{
       
    63 public:
       
    64 	virtual TCodecProcessResult ProcessL(const CMMFBuffer& /*aSource*/, CMMFBuffer& /*aDest*/);
       
    65 	virtual TUint SourceBufferSize() {return KTest2To1SourceBufferSize;};
       
    66 	virtual TUint SinkBufferSize() {return KTest2To1SinkBufferSize;};
       
    67 	};
       
    68 #endif
       
    69