webOS Userland
Native system APIs for webOS
dile_audio_direct.h File Reference

Go to the source code of this file.

Classes

struct  DILE_AUDIO_DIRECT_DATA_INFO_T
 

Macros

#define DILE_STATUS_T   _DILE_STATUS_T
 

Enumerations

enum  _DILE_STATUS_T {
  DILE_OK = 0 , DILE_NOT_OK = -1 , DILE_OK = 0 , DILE_NOT_OK = -1 ,
  DILE_OK = 0 , DILE_NOT_OK = -1
}
 
enum  DILE_AUDIO_DIRECT_CHANNEL_T { DILE_AUDIO_DIRECT_MAIN = 0 , DILE_AUDIO_DIRECT_SUB , DILE_AUDIO_DIRECT_CHANNEL_MAX = 2 }
 
enum  DILE_AUDIO_DIRECT_INDEX_T {
  DILE_AUDIO_DIRECT_ADEC0 = 0 , DILE_AUDIO_DIRECT_ADEC1 = 1 , DILE_AUDIO_DIRECT_ADEC2 = 2 , DILE_AUDIO_DIRECT_ADEC3 = 3 ,
  DILE_AUDIO_DIRECT_MIXER0 = 4 , DILE_AUDIO_DIRECT_MIXER1 = 5 , DILE_AUDIO_DIRECT_MIXER2 = 6 , DILE_AUDIO_DIRECT_MIXER3 = 7 ,
  DILE_AUDIO_DIRECT_MIXER4 = 8 , DILE_AUDIO_DIRECT_MIXER5 = 9 , DILE_AUDIO_DIRECT_MIXER6 = 10 , DILE_AUDIO_DIRECT_MIXER7 = 11 ,
  DILE_AUDIO_DIRECT_MIXER_MAX = DILE_AUDIO_DIRECT_MIXER7
}
 
enum  DILE_AUDIO_DIRECT_SRC_TYPE_T {
  DILE_AUDIO_DIRECT_SRC_TYPE_UNKNOWN , DILE_AUDIO_DIRECT_SRC_TYPE_PCM , DILE_AUDIO_DIRECT_SRC_TYPE_AC3 , DILE_AUDIO_DIRECT_SRC_TYPE_AAC ,
  DILE_AUDIO_DIRECT_SRC_TYPE_MP3
}
 
enum  DILE_AUDIO_DIRECT_SAMPLING_FREQ_T {
  DILE_AUDIO_DIRECT_SAMPLING_FREQ_NONE = 0 , DILE_AUDIO_DIRECT_SAMPLING_FREQ_4_KHZ , DILE_AUDIO_DIRECT_SAMPLING_FREQ_8_KHZ , DILE_AUDIO_DIRECT_SAMPLING_FREQ_11_025KHZ ,
  DILE_AUDIO_DIRECT_SAMPLING_FREQ_12_KHZ , DILE_AUDIO_DIRECT_SAMPLING_FREQ_16_KHZ , DILE_AUDIO_DIRECT_SAMPLING_FREQ_22_05KHZ , DILE_AUDIO_DIRECT_SAMPLING_FREQ_24_KHZ ,
  DILE_AUDIO_DIRECT_SAMPLING_FREQ_32_KHZ , DILE_AUDIO_DIRECT_SAMPLING_FREQ_44_1KHZ , DILE_AUDIO_DIRECT_SAMPLING_FREQ_48_KHZ , DILE_AUDIO_DIRECT_SAMPLING_FREQ_64_KHZ
}
 

Functions

DILE_STATUS_T DILE_AUDIO_DIRECT_Open (DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, DILE_AUDIO_DIRECT_INDEX_T audioIndex)
 
DILE_STATUS_T DILE_AUDIO_DIRECT_Start (DILE_AUDIO_DIRECT_DATA_INFO_T audioDataInfo)
 
DILE_STATUS_T DILE_AUDIO_DIRECT_Write (DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, void *pBuff, unsigned int bufSize)
 
DILE_STATUS_T DILE_AUDIO_DIRECT_Stop (DILE_AUDIO_DIRECT_CHANNEL_T audioChannel)
 
DILE_STATUS_T DILE_AUDIO_DIRECT_Close (DILE_AUDIO_DIRECT_CHANNEL_T audioChannel)
 
DILE_STATUS_T DILE_AUDIO_DIRECT_Pause (DILE_AUDIO_DIRECT_CHANNEL_T audioChannel)
 
DILE_STATUS_T DILE_AUDIO_DIRECT_Resume (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_GetBufferInfo (DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, unsigned int *pMaxBufSize, unsigned int *pFreeBufSize)
 
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_SetNoDelayParam (DILE_AUDIO_DIRECT_CHANNEL_T audioChannel, unsigned int bOnOff, unsigned int upperThreshold, unsigned int lowerThreshold)
 

Detailed Description

Device Interface Layer for Direct Audio

Author
keunbae.choi([email protected])
Version
1.1
Date
2013.12.14
Note
See also

Enumeration Type Documentation

◆ DILE_AUDIO_DIRECT_CHANNEL_T

DILE AUDIO Channel.

◆ DILE_AUDIO_DIRECT_INDEX_T

DILE AUDIO Decoder Index.

◆ DILE_AUDIO_DIRECT_SAMPLING_FREQ_T

AUDIO Sampling Frequency Index.

◆ DILE_AUDIO_DIRECT_SRC_TYPE_T

DILE AUDIO DIRECT Codec Type.

Enumerator
DILE_AUDIO_DIRECT_SRC_TYPE_UNKNOWN 

0

DILE_AUDIO_DIRECT_SRC_TYPE_PCM 

1

DILE_AUDIO_DIRECT_SRC_TYPE_AC3 

2(AC3, E-AC3(DD+))

DILE_AUDIO_DIRECT_SRC_TYPE_AAC 

3(AAC, HE-AAC)

DILE_AUDIO_DIRECT_SRC_TYPE_MP3 

5

Function Documentation

◆ DILE_AUDIO_DIRECT_Close()

DILE_STATUS_T DILE_AUDIO_DIRECT_Close ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel)

Release audio resource

Parameters
audioChannel[in] audio Channel
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_Flush()

DILE_STATUS_T DILE_AUDIO_DIRECT_Flush ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel)

Flush audio buffer

Parameters
audioChannel[in] audio Channel
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_GetBufferInfo()

DILE_STATUS_T DILE_AUDIO_DIRECT_GetBufferInfo ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel,
unsigned int *  pMaxBufSize,
unsigned int *  pFreeBufSize 
)

Check remaining audio data in buffer

Parameters
audioChannel[in] audio Channel
pMaxBufSize[out] total buffer size
pFreeBufSize[out] remaining audio data
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_GetRawBufferInfo()

DILE_STATUS_T DILE_AUDIO_DIRECT_GetRawBufferInfo ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel,
unsigned int *  pMaxBufSize,
unsigned int *  pFreeBufSize 
)

Check remaining audio raw data in buffer

Parameters
audioChannel[in] audio Channel
pMaxBufSize[out] total buffer size
pFreeBufSize[out] remaining audio data
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_Open()

DILE_STATUS_T DILE_AUDIO_DIRECT_Open ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel,
DILE_AUDIO_DIRECT_INDEX_T  audioIndex 
)

Set audio resource

Parameters
audioChannel[in] audio Channel
audioIndex[in] audio Index
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_Pause()

DILE_STATUS_T DILE_AUDIO_DIRECT_Pause ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel)

Pause audio playback

Parameters
audioChannel[in] audio Channel
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_Resume()

DILE_STATUS_T DILE_AUDIO_DIRECT_Resume ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel)

Resume audio playback

Parameters
audioChannel[in] audio Channel
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_SetNoDelayParam()

DILE_STATUS_T DILE_AUDIO_DIRECT_SetNoDelayParam ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel,
unsigned int  bOnOff,
unsigned int  upperThreshold,
unsigned int  lowerThreshold 
)

reduce audio delay

Parameters
audioChannel[in] audio Channel
bOnOff[in] On/Off
upperThreshold[in] Maximum value
lowerThreshold[in] Minimum value
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_Start()

DILE_STATUS_T DILE_AUDIO_DIRECT_Start ( DILE_AUDIO_DIRECT_DATA_INFO_T  audioDataInfo)

Set audio source information

Parameters
audioDataInfo[in] audio data information
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_Stop()

DILE_STATUS_T DILE_AUDIO_DIRECT_Stop ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel)

Stop audio playback

Parameters
audioChannel[in] audio Channel
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.

◆ DILE_AUDIO_DIRECT_Write()

DILE_STATUS_T DILE_AUDIO_DIRECT_Write ( DILE_AUDIO_DIRECT_CHANNEL_T  audioChannel,
void *  pBuff,
unsigned int  bufSize 
)

Send audio data into buffer

Parameters
audioChannel[in] audio Channel
pBuff[in] pointer of buffer
bufSize[in] buffer size
Returns
succeeded - DILE_OK, if not - DILE_NOT_OK.