|
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 #ifndef IRCONTROLPARAMS_H |
|
20 #define IRCONTROLPARAMS_H |
|
21 |
|
22 #include <e32def.h> |
|
23 |
|
24 //This value defines amount of time between each step in audio fade in effect |
|
25 const TInt KVolumeTime = 500000; //defines Audio Fade In time |
|
26 |
|
27 //This value defines amount of time between each step in audio fade out effect |
|
28 const TInt KDownVolumeTime = 200000; //defines the Audio Fade Out Time |
|
29 |
|
30 /** |
|
31 * Base for IR custom errors delivered via Command Channel |
|
32 */ |
|
33 const TInt KIRCtrlCmdErrorBase = { 0xB1234B }; |
|
34 |
|
35 /** |
|
36 * IR specific error telling that creationg of player failed. |
|
37 */ |
|
38 const TInt KIRCtrlCmdPlayerNotCreated = { KIRCtrlCmdErrorBase + 0x00000000 }; |
|
39 |
|
40 /** |
|
41 * IR specific general error sent by the player to report about its errors. |
|
42 */ |
|
43 const TInt KIRCtrlCmdGeneralPlayerError = { KIRCtrlCmdErrorBase + 0x00000001 }; |
|
44 |
|
45 /** |
|
46 * TIRControlCommmand is enum which defines various errors and condition of |
|
47 * the player |
|
48 */ |
|
49 enum TIRControlCommmand |
|
50 { |
|
51 //indicates that buffer is start to fill |
|
52 EBufferFillStart = 0x0F, |
|
53 // indicates that buffer is filled |
|
54 EBufferFillStop, |
|
55 //indicates that buffer is filling |
|
56 EBufferFilling, |
|
57 // audio fade out |
|
58 EBufferFadeOut, |
|
59 //audio fade in |
|
60 EBufferFadeIn, |
|
61 //player stopped playing due some external conditions |
|
62 EStoppedPlaying, |
|
63 //ready to start audio fade in |
|
64 EBufferFadeInReady, |
|
65 //indicates that an error has occured |
|
66 EError, |
|
67 //indicates that player changed |
|
68 EPlayerChanged, |
|
69 //makes stereo mode on |
|
70 EStereo, |
|
71 //When Player Stars Playing |
|
72 EPlayingState, |
|
73 }; |
|
74 |
|
75 #endif //IRCONTROLPARAMS_H |
|
76 |