sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2002-2007 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 error concealment.
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef RA8CUSTOMINTERFACE_H
|
sl@0
|
20 |
#define RA8CUSTOMINTERFACE_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 KUidRa8DecHwDeviceCI = {0x101FAF42};
|
sl@0
|
27 |
|
sl@0
|
28 |
// MACROS
|
sl@0
|
29 |
|
sl@0
|
30 |
// DATA TYPES
|
sl@0
|
31 |
enum TRa8DecHwDeviceCommand
|
sl@0
|
32 |
{
|
sl@0
|
33 |
ERa8DecHwdFrameNumber
|
sl@0
|
34 |
};
|
sl@0
|
35 |
|
sl@0
|
36 |
// FUNCTION PROTOTYPES
|
sl@0
|
37 |
|
sl@0
|
38 |
// FORWARD DECLARATIONS
|
sl@0
|
39 |
class CMMFDevSound;
|
sl@0
|
40 |
|
sl@0
|
41 |
// CLASS DECLARATION
|
sl@0
|
42 |
|
sl@0
|
43 |
/**
|
sl@0
|
44 |
* Interface for ra8 and sipro.
|
sl@0
|
45 |
* Used for providing initialization information for dsp decoder and getting.
|
sl@0
|
46 |
* information about played frames.
|
sl@0
|
47 |
* This abstract class just provides the static NewL function for the creation
|
sl@0
|
48 |
* of the proxy, and also defines the custom interface to be implemented by the
|
sl@0
|
49 |
* proxy and the real custom interface implementation.
|
sl@0
|
50 |
*
|
sl@0
|
51 |
*/
|
sl@0
|
52 |
class CRa8CustomInterface : public CBase
|
sl@0
|
53 |
{
|
sl@0
|
54 |
public: // Constructors and destructor
|
sl@0
|
55 |
|
sl@0
|
56 |
/**
|
sl@0
|
57 |
* Creates the interface.
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
IMPORT_C static CRa8CustomInterface* NewL(CMMFDevSound& aDevSound);
|
sl@0
|
60 |
|
sl@0
|
61 |
public: // New functions
|
sl@0
|
62 |
/**
|
sl@0
|
63 |
* CRa8CustomInterface::FrameNumber
|
sl@0
|
64 |
* is used get the current number of audio frames played.
|
sl@0
|
65 |
* @return status
|
sl@0
|
66 |
*/
|
sl@0
|
67 |
virtual TInt FrameNumber() = 0;
|
sl@0
|
68 |
/**
|
sl@0
|
69 |
* CRa8CustomInterface::SetInitString
|
sl@0
|
70 |
* is used to configure the initialization parameters for task creation.
|
sl@0
|
71 |
* @param aInitString contains the initialization information for the task.
|
sl@0
|
72 |
* @return status
|
sl@0
|
73 |
*/
|
sl@0
|
74 |
virtual TInt SetInitString(TDesC8& aInitString) = 0;
|
sl@0
|
75 |
|
sl@0
|
76 |
public: // Functions from base classes
|
sl@0
|
77 |
protected: // New functions
|
sl@0
|
78 |
protected: // Functions from base classes
|
sl@0
|
79 |
private:
|
sl@0
|
80 |
|
sl@0
|
81 |
public: // Data
|
sl@0
|
82 |
protected: // Data
|
sl@0
|
83 |
private: // Data
|
sl@0
|
84 |
public: // Friend classes
|
sl@0
|
85 |
protected: // Friend classes
|
sl@0
|
86 |
private: // Friend classes
|
sl@0
|
87 |
|
sl@0
|
88 |
};
|
sl@0
|
89 |
|
sl@0
|
90 |
#endif // RA8CUSTOMINTERFACE_H
|
sl@0
|
91 |
|
sl@0
|
92 |
// End of File
|