webOS Userland
Native system APIs for webOS
dile_audio_direct.h
Go to the documentation of this file.
1 /******************************************************************************
2  * DTV LABORATORY, LG ELECTRONICS INC., SEOUL, KOREA
3  * Copyright(c) 1999 by LG Electronics Inc.
4  *
5  * All rights reserved. No part of this work may be reproduced, stored in a
6  * retrieval system, or transmitted by any means without prior written
7  * permission of LG Electronics Inc.
8  *****************************************************************************/
9 
21 /******************************************************************************
22  Header File Guarder
23 ******************************************************************************/
24 #ifndef __DILE_AUDIO_DIRECT_H__
25 #define __DILE_AUDIO_DIRECT_H__
26 
27 /******************************************************************************
28  File Inclusions
29 ******************************************************************************/
30 
31 #ifdef __cplusplus
32 extern "C"
33 {
34 #endif
35 
36 /******************************************************************************
37  Constant Definitions
38 ******************************************************************************/
39 
40 /******************************************************************************
41  Macro Definitions
42 ******************************************************************************/
43 
44 /******************************************************************************
45  Type Definitions
46 ******************************************************************************/
47 
48 #ifndef DILE_STATUS_T
49 
50 typedef enum
51 {
52  DILE_OK = 0,
53  DILE_NOT_OK = -1,
54 } _DILE_STATUS_T;
55 
56 #define DILE_STATUS_T _DILE_STATUS_T
57 
58 #endif
59 
64 typedef enum
65 {
66  DILE_AUDIO_DIRECT_MAIN = 0,
67  DILE_AUDIO_DIRECT_SUB,
68 
69  DILE_AUDIO_DIRECT_CHANNEL_MAX = 2
71 
76 typedef enum
77 {
78  DILE_AUDIO_DIRECT_ADEC0 = 0,
79  DILE_AUDIO_DIRECT_ADEC1 = 1,
80  DILE_AUDIO_DIRECT_ADEC2 = 2,
81  DILE_AUDIO_DIRECT_ADEC3 = 3,
82  DILE_AUDIO_DIRECT_MIXER0 = 4, /* G-Streamer Mixer 0 */
83  DILE_AUDIO_DIRECT_MIXER1 = 5, /* G-Streamer Mixer 1 */
84  DILE_AUDIO_DIRECT_MIXER2 = 6, /* G-Streamer Mixer 2 */
85  DILE_AUDIO_DIRECT_MIXER3 = 7, /* G-Streamer Mixer 3 */
86  DILE_AUDIO_DIRECT_MIXER4 = 8, /* G-Streamer Mixer 4 */
87  DILE_AUDIO_DIRECT_MIXER5 = 9, /* DILE AUDIO Mixer 0 */
88  DILE_AUDIO_DIRECT_MIXER6 = 10, /* ALSA AUDIO Mixer 0 */
89  DILE_AUDIO_DIRECT_MIXER7 = 11, /* ALSA AUDIO Mixer 1 */
90  DILE_AUDIO_DIRECT_MIXER_MAX = DILE_AUDIO_DIRECT_MIXER7,
92 
97 typedef enum
98 {
105 
109 typedef enum
110 {
111  DILE_AUDIO_DIRECT_SAMPLING_FREQ_NONE = 0,
112  DILE_AUDIO_DIRECT_SAMPLING_FREQ_4_KHZ,
113  DILE_AUDIO_DIRECT_SAMPLING_FREQ_8_KHZ,
114  DILE_AUDIO_DIRECT_SAMPLING_FREQ_11_025KHZ,
115  DILE_AUDIO_DIRECT_SAMPLING_FREQ_12_KHZ,
116  DILE_AUDIO_DIRECT_SAMPLING_FREQ_16_KHZ,
117  DILE_AUDIO_DIRECT_SAMPLING_FREQ_22_05KHZ,
118  DILE_AUDIO_DIRECT_SAMPLING_FREQ_24_KHZ,
119  DILE_AUDIO_DIRECT_SAMPLING_FREQ_32_KHZ,
120  DILE_AUDIO_DIRECT_SAMPLING_FREQ_44_1KHZ,
121  DILE_AUDIO_DIRECT_SAMPLING_FREQ_48_KHZ,
122  DILE_AUDIO_DIRECT_SAMPLING_FREQ_64_KHZ,
124 
129 typedef struct
130 {
131  DILE_AUDIO_DIRECT_CHANNEL_T audioChannel;
132  DILE_AUDIO_DIRECT_SRC_TYPE_T audioSource;
134  unsigned int numberOfChannel;
135  unsigned int bitPerSample;
137 /******************************************************************************
138  Function Declaration
139 ******************************************************************************/
148 
156 
165 DILE_STATUS_T DILE_AUDIO_DIRECT_Write(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, void *pBuff, unsigned int bufSize);
166 
174 
182 
190 
198 
206 
215 DILE_STATUS_T DILE_AUDIO_DIRECT_GetBufferInfo(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, unsigned int *pMaxBufSize, unsigned int *pFreeBufSize);
216 
225 DILE_STATUS_T DILE_AUDIO_DIRECT_GetRawBufferInfo(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, unsigned int *pMaxBufSize, unsigned int *pFreeBufSize);
226 
236 DILE_STATUS_T DILE_AUDIO_DIRECT_SetNoDelayParam(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, unsigned int bOnOff, unsigned int upperThreshold, unsigned int lowerThreshold);
237 
238 #ifdef __cplusplus
239 }
240 #endif
241 
242 #endif /* __DILE_AUDIO_DIRECT_H__ */
DILE_STATUS_T DILE_AUDIO_DIRECT_Resume(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel)
DILE_STATUS_T DILE_AUDIO_DIRECT_GetBufferInfo(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, unsigned int *pMaxBufSize, unsigned int *pFreeBufSize)
DILE_AUDIO_DIRECT_SAMPLING_FREQ_T
Definition: dile_audio_direct.h:110
DILE_AUDIO_DIRECT_CHANNEL_T
Definition: dile_audio_direct.h:65
DILE_STATUS_T DILE_AUDIO_DIRECT_Close(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel)
DILE_STATUS_T DILE_AUDIO_DIRECT_Stop(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel)
DILE_STATUS_T DILE_AUDIO_DIRECT_SetNoDelayParam(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, unsigned int bOnOff, unsigned int upperThreshold, unsigned int lowerThreshold)
DILE_STATUS_T DILE_AUDIO_DIRECT_Pause(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel)
DILE_STATUS_T DILE_AUDIO_DIRECT_Flush(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel)
DILE_STATUS_T DILE_AUDIO_DIRECT_GetRawBufferInfo(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, unsigned int *pMaxBufSize, unsigned int *pFreeBufSize)
DILE_STATUS_T DILE_AUDIO_DIRECT_Write(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, void *pBuff, unsigned int bufSize)
DILE_AUDIO_DIRECT_INDEX_T
Definition: dile_audio_direct.h:77
DILE_STATUS_T DILE_AUDIO_DIRECT_Start(DILE_AUDIO_DIRECT_DATA_INFO_T audioDataInfo)
DILE_AUDIO_DIRECT_SRC_TYPE_T
Definition: dile_audio_direct.h:98
@ DILE_AUDIO_DIRECT_SRC_TYPE_AC3
2(AC3, E-AC3(DD+))
Definition: dile_audio_direct.h:101
@ DILE_AUDIO_DIRECT_SRC_TYPE_MP3
5
Definition: dile_audio_direct.h:103
@ DILE_AUDIO_DIRECT_SRC_TYPE_UNKNOWN
0
Definition: dile_audio_direct.h:99
@ DILE_AUDIO_DIRECT_SRC_TYPE_PCM
1
Definition: dile_audio_direct.h:100
@ DILE_AUDIO_DIRECT_SRC_TYPE_AAC
3(AAC, HE-AAC)
Definition: dile_audio_direct.h:102
DILE_STATUS_T DILE_AUDIO_DIRECT_Open(DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, DILE_AUDIO_DIRECT_INDEX_T audioIndex)
Definition: dile_audio_direct.h:130