FreeCalypso > hg > fc-magnetite
comparison src/cs/services/Audio/audio_features_i.h @ 0:945cf7f506b2
src/cs: chipsetsw import from tcs211-fcmodem
binary blobs and LCD demo files have been excluded,
all line endings are LF only
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Sep 2016 22:50:11 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:945cf7f506b2 |
---|---|
1 #ifndef AUDIO_FEATURES_I_H | |
2 #define AUDIO_FEATURES_I_H | |
3 | |
4 #include "audio/audio_api.h" | |
5 | |
6 /* configuration */ | |
7 /* FFS or RAM manager exist only if they are enabled AND a related L1 feature is enabled | |
8 Currently only VOICE MEMO AMR is supported */ | |
9 #define AUDIO_ENABLE_NEW_FFS_MANAGER 1 | |
10 #define AUDIO_NEW_FFS_MANAGER (AUDIO_ENABLE_NEW_FFS_MANAGER)&&(L1_VOICE_MEMO_AMR) | |
11 #define AUDIO_ENABLE_RAM_MANAGER 1 | |
12 #define AUDIO_RAM_MANAGER (AUDIO_ENABLE_RAM_MANAGER)&&(L1_VOICE_MEMO_AMR) | |
13 #define AUDIO_MEM_MANAGER (AUDIO_RAM_MANAGER) || (AUDIO_NEW_FFS_MANAGER) | |
14 | |
15 /* external prototype */ | |
16 #if (KEYBEEP) | |
17 void audio_keybeep_manager (T_RV_HDR *p_message); | |
18 void audio_keybeep_send_status (T_AUDIO_RET status, T_RV_RETURN return_path); | |
19 #endif | |
20 #if (TONE) | |
21 void audio_tones_manager (T_RV_HDR *p_message); | |
22 void audio_tones_send_status (T_AUDIO_RET status, T_RV_RETURN return_path); | |
23 #endif | |
24 #if (MELODY_E1) | |
25 void audio_melody_E1_manager_0 (T_RV_HDR *p_message); | |
26 void audio_melody_E1_manager_1 (T_RV_HDR *p_message); | |
27 UINT8 audio_melody_E1_message_switch (T_RV_HDR *p_message); | |
28 void audio_melody_E1_send_status (T_AUDIO_RET status, T_RV_RETURN return_path); | |
29 #endif | |
30 #if (MELODY_E2) | |
31 void audio_melody_E2_manager_0 (T_RV_HDR *p_message); | |
32 void audio_melody_E2_manager_1 (T_RV_HDR *p_message); | |
33 UINT8 audio_melody_E2_message_switch (T_RV_HDR *p_message); | |
34 void audio_background_melody_e2_download_instrument_manager (T_RV_HDR *p_message); | |
35 void audio_melody_E2_send_status (T_AUDIO_RET status, T_RV_RETURN return_path); | |
36 #endif | |
37 #if (VOICE_MEMO) | |
38 void audio_vm_play_manager (T_RV_HDR *p_message); | |
39 void audio_vm_record_manager(T_RV_HDR *p_message); | |
40 UINT8 audio_voice_memo_message_switch (T_RV_HDR *p_message); | |
41 void audio_vm_play_send_status (T_AUDIO_RET status, T_RV_RETURN return_path); | |
42 void audio_vm_record_send_status ( T_AUDIO_RET status, | |
43 UINT32 recorded_size, | |
44 T_RV_RETURN return_path); | |
45 #endif | |
46 #if (MELODY_E1) || (MELODY_E2) || (VOICE_MEMO) | |
47 void audio_ffs_manager (T_RV_HDR *p_message); | |
48 void audio_ffs_downloader (void); | |
49 #endif | |
50 #if (L1_VOICE_MEMO_AMR)&&(AUDIO_MEM_MANAGER) | |
51 void audio_vm_amr_play_from_memory_manager (T_RV_HDR *p_message); | |
52 void audio_vm_amr_record_to_memory_manager (T_RV_HDR *p_message); | |
53 #endif | |
54 #if (L1_VOICE_MEMO_AMR) | |
55 UINT8 audio_voice_memo_amr_memory_message_switch (T_RV_HDR *p_message); | |
56 void audio_vm_amr_play_send_status (T_AUDIO_RET status, T_RV_RETURN return_path); | |
57 void audio_vm_amr_record_send_status ( T_AUDIO_RET status, | |
58 UINT32 recorded_size, | |
59 T_RV_RETURN return_path); | |
60 #endif | |
61 #if (SPEECH_RECO) | |
62 void audio_sr_enroll_manager (T_RV_HDR *p_message); | |
63 void audio_sr_update_manager (T_RV_HDR *p_message); | |
64 void audio_sr_reco_manager (T_RV_HDR *p_message); | |
65 #ifndef _WINDOWS | |
66 void audio_sr_background_manager(T_RV_HDR *p_message); | |
67 #endif | |
68 void audio_sr_enroll_send_status (T_AUDIO_RET status, T_RV_RETURN return_path); | |
69 void audio_sr_update_send_status (T_AUDIO_RET status, T_RV_RETURN return_path); | |
70 void audio_sr_reco_send_status (T_AUDIO_RET status, UINT8 word_index, T_RV_RETURN return_path); | |
71 #endif | |
72 | |
73 #if (AUDIO_MEM_MANAGER) | |
74 UINT8 audio_mem_message_switch(T_RV_HDR *p_message); | |
75 void audio_mem_manager (T_RV_HDR *p_message); | |
76 #endif | |
77 #if (L1_AUDIO_DRIVER) | |
78 void audio_driver_manager(T_RV_HDR *p_message); | |
79 UINT8 audio_driver_message_switch(T_RV_HDR *p_message); | |
80 #endif | |
81 | |
82 /* audio mode prototype */ | |
83 void audio_mode_full_access_write_manager (T_RV_HDR *p_message); | |
84 void audio_mode_load_manager (T_RV_HDR *p_message); | |
85 void audio_mode_save_manager (T_RV_HDR *p_message); | |
86 void audio_mode_speaker_volume_manager (T_RV_HDR *p_message); | |
87 UINT8 audio_mode_message_switch (T_RV_HDR *p_message); | |
88 | |
89 void *audio_allocate_l1_message(UINT16 size); | |
90 void audio_deallocate_l1_message(void *message); | |
91 T_RV_RET audio_send_l1_message(INT16 message_id, void *message); | |
92 #endif |