1 /* |
|
2 * Copyright (c) 2006-2007 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 //supported formats |
|
20 #ifndef IRMEDIAENGINEDEF_H |
|
21 #define IRMEDIAENGINEDEF_H |
|
22 |
|
23 #include <e32def.h> |
|
24 |
|
25 //No of volume levels required other than zero volume level |
|
26 const TInt KNoVolumeLevels = 10; |
|
27 |
|
28 //volume level corresponding to zero volume (mute volume) |
|
29 const TInt KZeroVolume = 0; |
|
30 |
|
31 //This hold the initialization information which is required for a player to statrt playing |
|
32 class TConfig |
|
33 { |
|
34 public: |
|
35 TInt32 iVolume; //volume level |
|
36 TInt iPlayBufferCount; // number of playing buffers |
|
37 TUint iPlayBufferSize; // size of single playing buffer (in bytes) |
|
38 }; |
|
39 |
|
40 //This structure holds the various parameter of an audio format which is available |
|
41 class TAudioFormatData |
|
42 { |
|
43 public: |
|
44 TUint32 iSamplingRate; //sampling rate |
|
45 TUint32 iBitRate; //bit rate |
|
46 TUint32 iVersion; //version |
|
47 TUint32 iLayer; //layer |
|
48 TUint32 iChannel; //channel |
|
49 TUint32 iPadding; //padding |
|
50 TUint32 iFrameSize; //frame size |
|
51 TUint32 iSamplesPerFrame; //samples per frame |
|
52 }; |
|
53 |
|
54 |
|
55 #endif//IRMEDIAENGINEDEF_H |
|
56 |
|