comparison src/ui/bmi/mmiSounds.h @ 126:03375c220570

mmiSounds.h: bogotab and C1 character fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 10 Nov 2020 06:34:39 +0000
parents c0052fe355d3
children 62480f597962
comparison
equal deleted inserted replaced
125:87d2aa0ddde5 126:03375c220570
1 #ifndef _MMI_SOUNDS_H_ 1 #ifndef _MMI_SOUNDS_H_
2 #define _MMI_SOUNDS_H_ 1 2 #define _MMI_SOUNDS_H_ 1
3 3
4 /******************************************************************************* 4 /*******************************************************************************
5 5
6 CONDAT (UK) 6 CONDAT (UK)
7 7
8 ******************************************************************************** 8 ********************************************************************************
9 9
10 This software product is the property of Condat (UK) Ltd and may not be 10 This software product is the property of Condat (UK) Ltd and may not be
11 disclosed to any third party without the express permission of the owner. 11 disclosed to any third party without the express permission of the owner.
12 12
13 ******************************************************************************** 13 ********************************************************************************
14 14
15 $Project name: Basic MMI 15 $Project name: Basic MMI
16 $Project code: BMI (6349) 16 $Project code: BMI (6349)
17 $Module: Sounds 17 $Module: Sounds
18 $File: MmiSounds.h 18 $File: MmiSounds.h
19 $Revision: 1.0 19 $Revision: 1.0
20 20
21 $Author: Condat(UK) 21 $Author: Condat(UK)
22 $Date: 25/10/00 22 $Date: 25/10/00
23 23
24 ******************************************************************************** 24 ********************************************************************************
25 25
26 Description: 26 Description:
27 27
28 This provides the implementation of the sounds for the basic MMI 28 This provides the implementation of the sounds for the basic MMI
29 29
30 1. Playing various system sounds such as the paging ring, 30 1. Playing various system sounds such as the paging ring,
31 new sms message etc. 31 new sms message etc.
32 2. The menus used to enable or disable the system sounds 32 2. The menus used to enable or disable the system sounds
33 3. The menu used to select the paging ring tone 33 3. The menu used to select the paging ring tone
34 4. The menu used to select the volume. 34 4. The menu used to select the volume.
35 5. The menu used to select the key press tone or dtmf 35 5. The menu used to select the key press tone or dtmf
36 36
37 The mmi should play system sounds by calling soundExec with the appropriate 37 The mmi should play system sounds by calling soundExec with the appropriate
38 SoundsXXXX message it is possible to go directly to the audio driver to play 38 SoundsXXXX message it is possible to go directly to the audio driver to play
39 a sound but this will bypass any user settings to turn sounds on or off. 39 a sound but this will bypass any user settings to turn sounds on or off.
40 40
41 The MelodySelect and SettingXXXX messages are used to control the key events 41 The MelodySelect and SettingXXXX messages are used to control the key events
42 during menu handling, entry to the sounds menus is through the soundsXXXX 42 during menu handling, entry to the sounds menus is through the soundsXXXX
43 functions. These display the appropriate menu and handle the keypad events. 43 functions. These display the appropriate menu and handle the keypad events.
44 44
45 The settings are read from PCM on startup and saved whenever a setting menu 45 The settings are read from PCM on startup and saved whenever a setting menu
46 is selected. 46 is selected.
47 47
48 ******************************************************************************** 48 ********************************************************************************
49 $History: MmiSounds.h 49 $History: MmiSounds.h
50 50
51 25/10/00 Original Condat(UK) BMI version. 51 25/10/00 Original Condat(UK) BMI version.
52 52
53 Nov 04, 2005 REF:DRT OMAPS00053737 xdeepadh 53 Nov 04, 2005 REF:DRT OMAPS00053737 xdeepadh
54 Description: MIDI Ringer Linear Flash Support. 54 Description: MIDI Ringer Linear Flash Support.
55 Solution: The Midi Ringer application has been enhanced to loadand play the midi files from LFS. 55 Solution: The Midi Ringer application has been enhanced to loadand play the midi files from LFS.
56 56
57 Apr 05, 2005 REF: ENH 29994 xdeepadh 57 Apr 05, 2005 REF: ENH 29994 xdeepadh
58 Description: Implementation of Generic Midi Ringer and Modification of existing Midi Test Application 58 Description: Implementation of Generic Midi Ringer and Modification of existing Midi Test Application
59 Solution: Generic Midi Ringer and Midi Test Application were implemented. 59 Solution: Generic Midi Ringer and Midi Test Application were implemented.
60 60
61 Nov 29, 2004 REF: CRR 25051 xkundadu 61 Nov 29, 2004 REF: CRR 25051 xkundadu
62 Description: INCALL SCREEN – ADJUSTING THE VOLUME 62 Description: INCALL SCREEN - ADJUSTING THE VOLUME
63 Fix: Added volume level list linked to up/down keys. 63 Fix: Added volume level list linked to up/down keys.
64 User can select the speaker volume among those levels. 64 User can select the speaker volume among those levels.
65 65
66 Dec 23, 2005 REF: SR13878 x0020906 66 Dec 23, 2005 REF: SR13878 x0020906
67 Description: Set Default ring tone value. 67 Description: Set Default ring tone value.
68 Fix : Added a function setDefaultSound () 68 Fix : Added a function setDefaultSound ()
69 69
70 $End 70 $End
71 71
72 *******************************************************************************/ 72 *******************************************************************************/
73 #include "MmiLists.h" 73 #include "MmiLists.h"
89 #define FREE_MEMORY mfwFree 89 #define FREE_MEMORY mfwFree
90 90
91 /* Apr 05, 2005 REF: ENH 29994 xdeepadh */ 91 /* Apr 05, 2005 REF: ENH 29994 xdeepadh */
92 /* Maximum files to be displayed in the MMI */ 92 /* Maximum files to be displayed in the MMI */
93 #define MIDI_MAX_FILES 10 93 #define MIDI_MAX_FILES 10
94
95 94
96 95
97 /* Provide message ids for the messages we will deal with in 96 /* Provide message ids for the messages we will deal with in
98 the sounds module. 97 the sounds module.
99 */ 98 */
100 typedef enum 99 typedef enum
101 { 100 {
102 SoundsNone = SoundsDummy, 101 SoundsNone = SoundsDummy,
103 SoundsStop, 102 SoundsStop,
104 SoundsPagingStart, 103 SoundsPagingStart,
105 SoundsMuteClick, 104 SoundsMuteClick,
106 SoundsRingAlarm, 105 SoundsRingAlarm,
107 SoundsRingOrganiser, 106 SoundsRingOrganiser,
108 SoundsCreditRing, 107 SoundsCreditRing,
109 SoundsSMSRing, 108 SoundsSMSRing,
110 SoundsSMSBroadcast, 109 SoundsSMSBroadcast,
111 SoundsErrorTone, 110 SoundsErrorTone,
112 SoundsBattLowIdle, 111 SoundsBattLowIdle,
113 SoundsBattLowDedic, 112 SoundsBattLowDedic,
114 SoundsConnCharger, 113 SoundsConnCharger,
115 SoundsDisconnCharger, 114 SoundsDisconnCharger,
116 SoundsSwitchOff, 115 SoundsSwitchOff,
117 MelodySelect, 116 MelodySelect,
118 SettingVibrator, 117 SettingVibrator,
119 SettingKeypadTone, 118 SettingKeypadTone,
120 SettingSMSTone, 119 SettingSMSTone,
121 SettingSMSBroadcastTone, 120 SettingSMSBroadcastTone,
122 SettingBatteryLowBeep, 121 SettingBatteryLowBeep,
123 SettingCreditLowBeep, 122 SettingCreditLowBeep,
124 SettingOrganiserAlert, 123 SettingOrganiserAlert,
125 SettingAlarm, 124 SettingAlarm,
126 SettingVolume, 125 SettingVolume,
127 SettingLanguage, 126 SettingLanguage,
128 SoundsDone, 127 SoundsDone,
129 SoundsCancel 128 SoundsCancel
130 } SoundSettingState; 129 } SoundSettingState;
131 130
132 // Nov 29, 2004 REF: CRR 25051 xkundadu 131 // Nov 29, 2004 REF: CRR 25051 xkundadu
133 // Description: INCALL SCREEN – ADJUSTING THE VOLUME 132 // Description: INCALL SCREEN - ADJUSTING THE VOLUME
134 // Fix: Added these enum variables corresponds to speaker volume evels. 133 // Fix: Added these enum variables corresponds to speaker volume evels.
135 // Maximum value allowed is 255 and minimum value is 1. So eqully divided into 134 // Maximum value allowed is 255 and minimum value is 1. So eqully divided into
136 // five levels. 135 // five levels.
137 typedef enum 136 typedef enum
138 { 137 {
139 OutVolumeLevel1 = 1, 138 OutVolumeLevel1 = 1,
140 OutVolumeLevel2 = 60, 139 OutVolumeLevel2 = 60,
141 OutVolumeLevel3 = 125, 140 OutVolumeLevel3 = 125,
142 OutVolumeLevel4 =190, 141 OutVolumeLevel4 = 190,
143 OutVolumeLevel5 = 255 142 OutVolumeLevel5 = 255
144 } T_OUT_VOLUME_LEVEL; 143 } T_OUT_VOLUME_LEVEL;
145 144
146 typedef struct 145 typedef struct
147 { 146 {
148 T_MMI_CONTROL mmi_control; 147 T_MMI_CONTROL mmi_control;
149 T_MFW_HND sounds_win; /* MFW win handler */ 148 T_MFW_HND sounds_win; /* MFW win handler */
150 T_MFW_HND parent; 149 T_MFW_HND parent;
151 T_MFW_HND melody_handler; /* MFW sms handler */ 150 T_MFW_HND melody_handler; /* MFW sms handler */
152 unsigned char local_status; 151 unsigned char local_status;
153 ListMenuData * menu_list_data; 152 ListMenuData *menu_list_data;
154 } T_MELODY_INFO; 153 } T_MELODY_INFO;
155 154
156 #ifdef FF_MIDI_RINGER 155 #ifdef FF_MIDI_RINGER
157 typedef struct 156 typedef struct
158 { 157 {
211 210
212 UBYTE getCurrentVoulmeSettings(void); 211 UBYTE getCurrentVoulmeSettings(void);
213 void setSoundsReason(USHORT reason); 212 void setSoundsReason(USHORT reason);
214 213
215 // Nov 29, 2004 REF: CRR 25051 xkundadu 214 // Nov 29, 2004 REF: CRR 25051 xkundadu
216 // Description: INCALL SCREEN – ADJUSTING THE VOLUME 215 // Description: INCALL SCREEN - ADJUSTING THE VOLUME
217 // Fix: Prototypes for the volume setting functions. 216 // Fix: Prototypes for the volume setting functions.
218 void SetVolumeLevel1(void); 217 void SetVolumeLevel1(void);
219 void SetVolumeLevel2(void); 218 void SetVolumeLevel2(void);
220 void SetVolumeLevel3(void); 219 void SetVolumeLevel3(void);
221 void SetVolumeLevel4(void); 220 void SetVolumeLevel4(void);