FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiSounds.h @ 92:c0052fe355d3
src/ui/bmi/*.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 08 Nov 2020 06:39:16 +0000 |
parents | 67bfe9f274f6 |
children | 03375c220570 |
comparison
equal
deleted
inserted
replaced
91:c3d28a37caad | 92:c0052fe355d3 |
---|---|
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 |
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 |
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" |
74 | 74 |
75 #ifdef FF_MIDI_RINGER | 75 #ifdef FF_MIDI_RINGER |
76 #include "general.h" | 76 #include "general.h" |
77 #endif | 77 #endif |
78 /******************************************************************************* | 78 /******************************************************************************* |
79 | 79 |
80 Basic definitions | 80 Basic definitions |
81 | 81 |
82 *******************************************************************************/ | 82 *******************************************************************************/ |
83 | 83 |
84 /* Redefine the alloc and free memory routines for use in the sounds | 84 /* Redefine the alloc and free memory routines for use in the sounds |
85 module. | 85 module. |
86 */ | 86 */ |
151 T_MFW_HND melody_handler; /* MFW sms handler */ | 151 T_MFW_HND melody_handler; /* MFW sms handler */ |
152 unsigned char local_status; | 152 unsigned char local_status; |
153 ListMenuData * menu_list_data; | 153 ListMenuData * menu_list_data; |
154 } T_MELODY_INFO; | 154 } T_MELODY_INFO; |
155 | 155 |
156 #ifdef FF_MIDI_RINGER | 156 #ifdef FF_MIDI_RINGER |
157 typedef struct | 157 typedef struct |
158 { | 158 { |
159 const char* melody_name; | 159 const char* melody_name; |
160 const void* melody; | 160 const void* melody; |
161 UINT32 melody_size; | 161 UINT32 melody_size; |
162 } T_MELODY; | 162 } T_MELODY; |
163 #endif | 163 #endif |
164 | 164 |
165 /******************************************************************************* | 165 /******************************************************************************* |
166 | 166 |
167 Public Methods | 167 Public Methods |
168 | 168 |
169 *******************************************************************************/ | 169 *******************************************************************************/ |
170 | 170 |
171 void soundInit( MfwHnd parent ); | 171 void soundInit( MfwHnd parent ); |
172 void soundExit( void ); | 172 void soundExit( void ); |
173 void soundExec( int reason, MmiState next ); | 173 void soundExec( int reason, MmiState next ); |
220 void SetVolumeLevel3(void); | 220 void SetVolumeLevel3(void); |
221 void SetVolumeLevel4(void); | 221 void SetVolumeLevel4(void); |
222 void SetVolumeLevel5(void); | 222 void SetVolumeLevel5(void); |
223 | 223 |
224 /* Apr 05, 2005 REF: ENH 29994 xdeepadh */ | 224 /* Apr 05, 2005 REF: ENH 29994 xdeepadh */ |
225 #ifdef FF_MIDI_RINGER | 225 #ifdef FF_MIDI_RINGER |
226 int sounds_midi_return_file_number(void); | 226 int sounds_midi_return_file_number(void); |
227 char* sounds_midi_return_file_name(UBYTE index); | 227 char* sounds_midi_return_file_name(UBYTE index); |
228 /*a0393213 warnings removal-sounds_midi_return_memory_location function prototype put under FF_MIDI_LOAD_FROM_MEM flag*/ | 228 /*a0393213 warnings removal-sounds_midi_return_memory_location function prototype put under FF_MIDI_LOAD_FROM_MEM flag*/ |
229 #ifdef FF_MIDI_LOAD_FROM_MEM | 229 #ifdef FF_MIDI_LOAD_FROM_MEM |
230 T_MELODY sounds_midi_return_memory_location(UBYTE index); | 230 T_MELODY sounds_midi_return_memory_location(UBYTE index); |
243 char *sounds_midi_GetExtension(char *src);//Jul 20, 2005 REF: SPR 30772 xdeepadh | 243 char *sounds_midi_GetExtension(char *src);//Jul 20, 2005 REF: SPR 30772 xdeepadh |
244 | 244 |
245 /* x0045876, 14-Aug-2006 (WR - function declared implicitly) */ | 245 /* x0045876, 14-Aug-2006 (WR - function declared implicitly) */ |
246 #else | 246 #else |
247 int resource_GetListCount(res_ResourceID_type res); | 247 int resource_GetListCount(res_ResourceID_type res); |
248 | 248 |
249 #endif | 249 #endif |
250 | 250 |
251 /* Store into structure from FFS - RAVI - 23-12-2005 */ | 251 /* Store into structure from FFS - RAVI - 23-12-2005 */ |
252 #ifdef NEPTUNE_BOARD | 252 #ifdef NEPTUNE_BOARD |
253 void setDefaultSound(void); | 253 void setDefaultSound(void); |
255 | 255 |
256 /* x0045876, 14-Aug-2006 (WR - getcurrentAlarmTone function declared implicitly) */ | 256 /* x0045876, 14-Aug-2006 (WR - getcurrentAlarmTone function declared implicitly) */ |
257 UBYTE getcurrentAlarmTone(void); | 257 UBYTE getcurrentAlarmTone(void); |
258 | 258 |
259 /******************************************************************************* | 259 /******************************************************************************* |
260 | 260 |
261 End of File | 261 End of File |
262 | 262 |
263 *******************************************************************************/ | 263 *******************************************************************************/ |
264 | 264 |
265 #endif //_MMI_SOUNDS_H_ | 265 #endif //_MMI_SOUNDS_H_ |