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 } |
Device Interface Layer for Direct Audio
DILE AUDIO Channel.
DILE AUDIO Decoder Index.
AUDIO Sampling Frequency Index.
DILE_STATUS_T DILE_AUDIO_DIRECT_Close | ( | DILE_AUDIO_DIRECT_CHANNEL_T | audioChannel | ) |
Release audio resource
audioChannel | [in] audio Channel |
DILE_STATUS_T DILE_AUDIO_DIRECT_Flush | ( | DILE_AUDIO_DIRECT_CHANNEL_T | audioChannel | ) |
Flush audio buffer
audioChannel | [in] audio Channel |
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
audioChannel | [in] audio Channel |
pMaxBufSize | [out] total buffer size |
pFreeBufSize | [out] remaining audio data |
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
audioChannel | [in] audio Channel |
pMaxBufSize | [out] total buffer size |
pFreeBufSize | [out] remaining audio data |
DILE_STATUS_T DILE_AUDIO_DIRECT_Open | ( | DILE_AUDIO_DIRECT_CHANNEL_T | audioChannel, |
DILE_AUDIO_DIRECT_INDEX_T | audioIndex | ||
) |
Set audio resource
audioChannel | [in] audio Channel |
audioIndex | [in] audio Index |
DILE_STATUS_T DILE_AUDIO_DIRECT_Pause | ( | DILE_AUDIO_DIRECT_CHANNEL_T | audioChannel | ) |
Pause audio playback
audioChannel | [in] audio Channel |
DILE_STATUS_T DILE_AUDIO_DIRECT_Resume | ( | DILE_AUDIO_DIRECT_CHANNEL_T | audioChannel | ) |
Resume audio playback
audioChannel | [in] audio Channel |
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
audioChannel | [in] audio Channel |
bOnOff | [in] On/Off |
upperThreshold | [in] Maximum value |
lowerThreshold | [in] Minimum value |
DILE_STATUS_T DILE_AUDIO_DIRECT_Start | ( | DILE_AUDIO_DIRECT_DATA_INFO_T | audioDataInfo | ) |
Set audio source information
audioDataInfo | [in] audio data information |
DILE_STATUS_T DILE_AUDIO_DIRECT_Stop | ( | DILE_AUDIO_DIRECT_CHANNEL_T | audioChannel | ) |
Stop audio playback
audioChannel | [in] audio Channel |
DILE_STATUS_T DILE_AUDIO_DIRECT_Write | ( | DILE_AUDIO_DIRECT_CHANNEL_T | audioChannel, |
void * | pBuff, | ||
unsigned int | bufSize | ||
) |
Send audio data into buffer
audioChannel | [in] audio Channel |
pBuff | [in] pointer of buffer |
bufSize | [in] buffer size |