sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description: Used for interface to Ilbc decoder.
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef CILBCDECODERINTFC_H
|
sl@0
|
20 |
#define CILBCDECODERINTFC_H
|
sl@0
|
21 |
|
sl@0
|
22 |
// INCLUDES
|
sl@0
|
23 |
#include <e32base.h>
|
sl@0
|
24 |
|
sl@0
|
25 |
// CONSTANTS
|
sl@0
|
26 |
const TUid KUidIlbcDecoderIntfc = {0x10207ABF};
|
sl@0
|
27 |
|
sl@0
|
28 |
// MACROS
|
sl@0
|
29 |
|
sl@0
|
30 |
// DATA TYPES
|
sl@0
|
31 |
|
sl@0
|
32 |
// FUNCTION PROTOTYPES
|
sl@0
|
33 |
|
sl@0
|
34 |
// FORWARD DECLARATIONS
|
sl@0
|
35 |
class CMMFDevSound;
|
sl@0
|
36 |
class CMdaAudioOutputStream;
|
sl@0
|
37 |
|
sl@0
|
38 |
// CLASS DECLARATION
|
sl@0
|
39 |
|
sl@0
|
40 |
/**
|
sl@0
|
41 |
* Interface for Ilbc decoder.
|
sl@0
|
42 |
* This abstract class just provides the static NewL function for the creation
|
sl@0
|
43 |
* of the proxy, and also defines the custom interface to be implemented by the
|
sl@0
|
44 |
* proxy and the real custom interface implementation.
|
sl@0
|
45 |
*
|
sl@0
|
46 |
* @lib IlbcDecoderIntfc.lib
|
sl@0
|
47 |
* @since S60 3.0
|
sl@0
|
48 |
*/
|
sl@0
|
49 |
class CIlbcDecoderIntfc : public CBase
|
sl@0
|
50 |
{
|
sl@0
|
51 |
// DATA TYPES
|
sl@0
|
52 |
public:
|
sl@0
|
53 |
enum TDecodeMode
|
sl@0
|
54 |
{
|
sl@0
|
55 |
E20msFrame,
|
sl@0
|
56 |
E30msFrame
|
sl@0
|
57 |
};
|
sl@0
|
58 |
|
sl@0
|
59 |
public: // Constructors and destructor
|
sl@0
|
60 |
|
sl@0
|
61 |
/**
|
sl@0
|
62 |
* Creates the interface.
|
sl@0
|
63 |
*/
|
sl@0
|
64 |
IMPORT_C static CIlbcDecoderIntfc*
|
sl@0
|
65 |
NewL(CMMFDevSound& aDevSound);
|
sl@0
|
66 |
|
sl@0
|
67 |
/**
|
sl@0
|
68 |
* Creates the interface.
|
sl@0
|
69 |
*/
|
sl@0
|
70 |
IMPORT_C static CIlbcDecoderIntfc*
|
sl@0
|
71 |
NewL(CMdaAudioOutputStream& aUtility);
|
sl@0
|
72 |
|
sl@0
|
73 |
public: // New functions
|
sl@0
|
74 |
IMPORT_C virtual TInt SetDecoderMode(TDecodeMode aDecodeMode) = 0;
|
sl@0
|
75 |
IMPORT_C virtual TInt SetCng(TBool aCng) = 0;
|
sl@0
|
76 |
IMPORT_C virtual TInt GetCng(TBool& aCng) = 0;
|
sl@0
|
77 |
|
sl@0
|
78 |
public: // Functions from base classes
|
sl@0
|
79 |
protected: // New functions
|
sl@0
|
80 |
protected: // Functions from base classes
|
sl@0
|
81 |
private:
|
sl@0
|
82 |
|
sl@0
|
83 |
public: // Data
|
sl@0
|
84 |
protected: // Data
|
sl@0
|
85 |
private: // Data
|
sl@0
|
86 |
public: // Friend classes
|
sl@0
|
87 |
protected: // Friend classes
|
sl@0
|
88 |
private: // Friend classes
|
sl@0
|
89 |
|
sl@0
|
90 |
};
|
sl@0
|
91 |
|
sl@0
|
92 |
#endif // CILBCDECODERINTFC_H
|
sl@0
|
93 |
|
sl@0
|
94 |
// End of File
|