|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef ERRORCONCEALMENTTESTDEVICE_H |
|
17 #define ERRORCONCEALMENTTESTDEVICE_H |
|
18 |
|
19 #include <mmf/server/mmfswcodecwrapper.h> |
|
20 #include <mmf/server/devsoundstandardcustominterfaces.h> |
|
21 |
|
22 |
|
23 class CMMFErrorConcealment : public CBase, |
|
24 public MMMFErrorConcealmentIntfc |
|
25 { |
|
26 public: |
|
27 //return Pointer to the CMMFErrorConcealment class |
|
28 static CMMFErrorConcealment* NewL(); |
|
29 |
|
30 //Destructor |
|
31 ~CMMFErrorConcealment(); |
|
32 |
|
33 // from mirror MErrorConcealment method. |
|
34 TInt ConcealErrorForNextBuffer(); |
|
35 TInt SetFrameMode(TBool aFrameModeOn); |
|
36 TInt FrameModeRqrdForEC(TBool& aFrameModeRqrd); |
|
37 }; |
|
38 |
|
39 |
|
40 /* |
|
41 CErrorConcealmentTestDevice |
|
42 |
|
43 Test hw device used by the |
|
44 TSU_MMF_DEVSOUND_CIU_SUITE unit test harness. |
|
45 */ |
|
46 class CErrorConcealmentTestDevice : public CMMFSwCodecWrapper, |
|
47 public MMMFErrorConcealmentIntfc |
|
48 { |
|
49 public: |
|
50 static CMMFHwDevice* NewL(); |
|
51 virtual ~CErrorConcealmentTestDevice(); |
|
52 virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd); |
|
53 virtual TInt Stop(); |
|
54 virtual TInt Pause(); |
|
55 virtual TInt Init(THwDeviceInitParams& aDevInfo); |
|
56 virtual TAny* CustomInterface(TUid aInterfaceId); |
|
57 virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr); |
|
58 virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr); |
|
59 virtual TInt SetConfig(TTaskConfig& aConfig); |
|
60 virtual TInt StopAndDeleteCodec(); |
|
61 virtual TInt DeleteCodec(); |
|
62 |
|
63 // from CMMFSwCodecWrapper |
|
64 virtual CMMFSwCodec& Codec(); |
|
65 |
|
66 // from mirror MErrorConcealment method. |
|
67 TInt ConcealErrorForNextBuffer(); |
|
68 TInt SetFrameMode(TBool aFrameModeOn); |
|
69 TInt FrameModeRqrdForEC(TBool& aFrameModeRqrd); |
|
70 |
|
71 private: |
|
72 CErrorConcealmentTestDevice(); |
|
73 void ConstructL(); |
|
74 |
|
75 private: |
|
76 CMMFErrorConcealment* iErrorConcealment; |
|
77 }; |
|
78 |
|
79 #endif |