FreeCalypso > hg > tcs211-fcmodem
comparison chipsetsw/services/Audio/audio_ffs_i.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /********************************************************************************/ | |
2 /* */ | |
3 /* File Name: audio_ffs_i.h */ | |
4 /* */ | |
5 /* Purpose: This header contains the audio ffs constants related to */ | |
6 /* the ffs behavior. */ | |
7 /* */ | |
8 /* Note: */ | |
9 /* None. */ | |
10 /* */ | |
11 /* Revision History: */ | |
12 /* 11 May 01 Francois Mazard - Stephanie Gerthoux Create */ | |
13 /* */ | |
14 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved. */ | |
15 /* */ | |
16 /********************************************************************************/ | |
17 #ifndef _AUDIO_FFS_I_H_ | |
18 #define _AUDIO_FFS_I_H_ | |
19 | |
20 #ifdef __cplusplus | |
21 extern "C" | |
22 { | |
23 #endif | |
24 | |
25 #define AUDIO_MEM_MAX_CHANNEL (1) | |
26 #define AUDIO_VM_AMR_PLAY_SIZE (500)// 16 bit unit | |
27 #define AUDIO_VM_AMR_PLAY_NB_BUFFER (2) | |
28 #define AUDIO_VM_AMR_RECORD_SIZE (500)// 16 bit unit | |
29 #define AUDIO_VM_AMR_RECORD_NB_BUFFER (2) | |
30 #define AUDIO_MIDI_SIZE (500) // 16 bit unit | |
31 #define AUDIO_MIDI_NB_BUFFER (2) | |
32 | |
33 #if (MELODY_E1) || (MELODY_E2) || (VOICE_MEMO) | |
34 /* maximum number of FFS channel */ | |
35 #define AUDIO_FFS_MAX_CHANNEL (2) | |
36 | |
37 /* list of the session_id depending on the audio features */ | |
38 /* session id of the melody E1 number 0 */ | |
39 #define AUDIO_FFS_SESSION_MELODY_E1_0 (0) | |
40 /* session id of the melody E1 number 1 */ | |
41 #define AUDIO_FFS_SESSION_MELODY_E1_1 (1) | |
42 /* session id of the melody E2 number 0 */ | |
43 #define AUDIO_FFS_SESSION_MELODY_E2_0 (2) | |
44 /* session id of the melody E2 number 1 */ | |
45 #define AUDIO_FFS_SESSION_MELODY_E2_1 (3) | |
46 | |
47 /* session id of the voice memo play */ | |
48 #define AUDIO_FFS_SESSION_VM_PLAY (4) | |
49 /* session id ofthe voice memo record */ | |
50 #define AUDIO_FFS_SESSION_VM_RECORD (5) | |
51 /* size of the data to download to the RAM for each features */ | |
52 /* using the FLASH to RAM session*/ | |
53 #define AUDIO_MELODY_E1_SIZE (512) | |
54 #define AUDIO_MELODY_E2_SIZE (512) | |
55 #define AUDIO_VM_PLAY_SIZE (1024) | |
56 /* size to allocate in RAM for each features */ | |
57 /* using the RAM to FLASH session */ | |
58 #define AUDIO_VM_RECORD_INITIAL_SIZE (1024) | |
59 | |
60 /* maximum number of buffer per session */ | |
61 #define AUDIO_MAX_FFS_BUFFER_PER_SESSION (2) | |
62 | |
63 /* The audio FFS is activated: the audio task run with a time out */ | |
64 #ifndef _WINDOWS | |
65 #define AUDIO_FFS_TIME_OUT (RVF_MS_TO_TICKS(500)) | |
66 #else | |
67 #define AUDIO_FFS_TIME_OUT (RVF_MS_TO_TICKS(10)) | |
68 #endif | |
69 | |
70 | |
71 /* The audio FFS manager need to be activate asap */ | |
72 #define AUDIO_FFS_ACTIVE_NOW (0) | |
73 | |
74 /* The audio FFS timer is in one shot mode */ | |
75 #define AUDIO_FFS_ONE_SHOT_TIMER (FALSE) | |
76 | |
77 /* The audio FFS timer is in continuous mode */ | |
78 #define AUDIO_FFS_CONTINUOUS_TIMER (TRUE) | |
79 | |
80 /* state of the cust_get_pointer state machine */ | |
81 #define AUDIO_CUST_GET_POINTER_INIT (0) | |
82 #define AUDIO_CUST_GET_POINTER_NORMAL (1) | |
83 #define AUDIO_CUST_GET_POINTER_LOOP (2) | |
84 #endif /* MELODY_E1 || MELODY_E2 || VOICE_MEMO */ | |
85 | |
86 #ifdef __cplusplus | |
87 } | |
88 #endif | |
89 #endif /* _AUDIO_FFS_I_ */ |