comparison src/cs/services/audio/audio_env_i.h @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
1 /****************************************************************************/
2 /* */
3 /* File Name: audio_env_i.h */
4 /* */
5 /* Purpose: This file contains prototypes for BT Environment related */
6 /* functions used to get info, start and stop the audio block. */
7 /* */
8 /* Version 0.1 */
9 /* */
10 /* Date Modification */
11 /* ------------------------------------ */
12 /* 18 May 2001 Create */
13 /* */
14 /* Author Francois Mazard - Stephanie Gerthoux */
15 /* */
16 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved*/
17 /****************************************************************************/
18
19 #ifndef _WINDOWS
20 #include "config/l1sw.cfg"
21 #include "config/swconfig.cfg"
22 #endif
23
24 #include "rv/rv_defined_swe.h"
25 #ifdef RVM_AUDIO_MAIN_SWE
26 #include "l1audio_cust.h"
27 #include "audio/audio_structs_i.h"
28
29 #include "audio/audio_pool_size.h" /* Stack & Memory Bank sizes definitions */
30
31 #ifndef __AUDIO_ENV_H_
32 #define __AUDIO_ENV_H_
33
34 /* memory bank size and watermark */
35 #define AUDIO_MB_EXTERNAL_SIZE AUDIO_MB1_SIZE
36 #define AUDIO_MB_EXTERNAL_WATERMARK AUDIO_MB_EXTERNAL_SIZE
37
38 #define AUDIO_MB_INTERNAL_SIZE AUDIO_MB2_SIZE
39 #define AUDIO_MB_INTERNAL_WATERMARK AUDIO_MB_INTERNAL_SIZE
40
41 #if (!GSMLITE)
42 #if (SPEECH_RECO)
43 /* In case of the speech reco, the RAM used is for the word speech sample recording */
44 /* 2 corresponds to sizeof(UINT16) */
45 #define AUDIO_MB_FFS_SIZE ( (SC_SR_MMI_2_L1_SPEECH_SIZE * 2)\
46 + (SC_SR_MMI_DB_MODEL_SIZE * 2) +\
47 (AUDIO_SR_MAX_VOCABULARY_NAME * AUDIO_PATH_NAME_MAX_SIZE)\
48 + 100 )
49 #else
50 #define AUDIO_MB_FFS_SIZE AUDIO_MB3_SIZE
51 #endif
52
53 #define AUDIO_MB_FFS_WATERMARK AUDIO_MB_FFS_SIZE
54 #endif
55
56 /* generic functions declarations */
57 T_RVM_RETURN audio_get_info (T_RVM_INFO_SWE *infoSWEnt);
58
59 T_RVM_RETURN audio_set_info(T_RVF_ADDR_ID addrId,
60 T_RV_RETURN return_path[],
61 T_RVF_MB_ID mbId[],
62 T_RVM_RETURN (*callBackFct) ( T_RVM_NAME SWEntName,
63 T_RVM_RETURN errorCause,
64 T_RVM_ERROR_TYPE errorType,
65 T_RVM_STRING errorMsg) );
66
67 T_RVM_RETURN audio_init (void);
68
69 T_RVM_RETURN audio_stop (void);
70
71 T_RVM_RETURN audio_kill (void);
72
73 #endif /*__AUDIO_ENV_H_*/
74
75 #endif /* #ifdef RVM_AUDIO_MAIN_SWE */