ISVP-SDK
3.12.0
Ingenic Smart Video Platform SDK
|
IMP audio input and output header file. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | IMPAudioIOAttr |
Audio input and output device attribute. More... | |
struct | IMPAudioFrame |
Audio frame structure. More... | |
struct | IMPAudioIChnParam |
Audio channel parameter structure. More... | |
struct | IMPAudioOChnState |
Data cache state structure of audio output channel. More... | |
struct | IMPAudioStream |
Define audio stream structure. More... | |
struct | IMPAudioEncChnAttr |
Define audio encoding channel attribute structure. More... | |
struct | IMPAudioEncEncoder |
Define the encoder attribute structure. More... | |
struct | IMPAudioDecChnAttr |
Define the decoded channel attribute structure. More... | |
struct | IMPAudioDecDecoder |
Define decoder attribute structure. More... | |
struct | IMPAudioAgcConfig |
Define AGC gain structure. More... | |
Macros | |
#define | MAX_AUDIO_FRAME_NUM 50 |
Maximum number of audio frames. | |
Enumerations | |
enum | IMPBlock { BLOCK = 0, NOBLOCK = 1 } |
Audio stream blocking type. More... | |
enum | IMPAudioSampleRate { AUDIO_SAMPLE_RATE_8000 = 8000, AUDIO_SAMPLE_RATE_16000 = 16000, AUDIO_SAMPLE_RATE_24000 = 24000, AUDIO_SAMPLE_RATE_44100 = 44100, AUDIO_SAMPLE_RATE_48000 = 48000, AUDIO_SAMPLE_RATE_96000 = 96000 } |
Audio sampling rate definition. More... | |
enum | IMPAudioBitWidth { AUDIO_BIT_WIDTH_16 = 16 } |
Audio sampling precision definition. More... | |
enum | IMPAudioSoundMode { AUDIO_SOUND_MODE_MONO = 1, AUDIO_SOUND_MODE_STEREO = 2 } |
Audio channel mode definition. More... | |
enum | IMPAudioPalyloadType { PT_PCM = 0, PT_G711A = 1, PT_G711U = 2, PT_G726 = 3, PT_AEC = 4, PT_ADPCM = 5, PT_MAX = 6 } |
Define audio payload type enumeration. | |
enum | IMPAudioDecMode { ADEC_MODE_PACK = 0, ADEC_MODE_STREAM = 1 } |
Define the decoding method. More... | |
enum | Level_ns { NS_LOW, NS_MODERATE, NS_HIGH, NS_VERYHIGH } |
Defines level of noise suppression. More... | |
Functions | |
int | IMP_AI_SetPubAttr (int audioDevId, IMPAudioIOAttr *attr) |
Set audio input device attribute. More... | |
int | IMP_AI_GetPubAttr (int audioDevId, IMPAudioIOAttr *attr) |
Get the attribute of the audio input device. More... | |
int | IMP_AI_Enable (int audioDevId) |
Enable audio input device. More... | |
int | IMP_AI_Disable (int audioDevId) |
Disable audio input device. More... | |
int | IMP_AI_EnableChn (int audioDevId, int aiChn) |
Enable audio input channel. More... | |
int | IMP_AI_DisableChn (int audioDevId, int aiChn) |
Disable audio input channel. More... | |
int | IMP_AI_PollingFrame (int audioDevId, int aiChn, unsigned int timeout_ms) |
Polling audio stream cache. More... | |
int | IMP_AI_GetFrame (int audioDevId, int aiChn, IMPAudioFrame *frm, IMPBlock block) |
Get audio frame. More... | |
int | IMP_AI_ReleaseFrame (int audioDevId, int aiChn, IMPAudioFrame *frm) |
Release audio frame. More... | |
int | IMP_AI_SetChnParam (int audioDevId, int aiChn, IMPAudioIChnParam *chnParam) |
Set audio input channel parameters. More... | |
int | IMP_AI_GetChnParam (int audioDevId, int aiChn, IMPAudioIChnParam *chnParam) |
Set audio input channel parameters. More... | |
int | IMP_AI_EnableAec (int aiDevId, int aiChn, int aoDevId, int aoChn) |
Enable audio echo cancellation feature of the specified audio input and audio output. More... | |
int | IMP_AI_DisableAec (int aiDevId, int aiChn) |
Disable audio echo cancellation feature. More... | |
int | IMP_AI_EnableNs (IMPAudioIOAttr *attr, int mode) |
Enable specified audio input noise suppression. More... | |
int | IMP_AI_DisableNs (void) |
Disable noise suppression. More... | |
int | IMP_AI_EnableAgc (IMPAudioIOAttr *attr, IMPAudioAgcConfig agcConfig) |
Enable automatic gain of audio input. More... | |
int | IMP_AI_DisableAgc (void) |
Disable AI automatic gain feature. More... | |
int | IMP_AO_EnableAgc (IMPAudioIOAttr *attr, IMPAudioAgcConfig agcConfig) |
Enable audio output automatic gain feature. More... | |
int | IMP_AO_DisableAgc (void) |
Disable AO automatic gain feature. More... | |
int | IMP_AI_EnableHpf (IMPAudioIOAttr *attr) |
Enable audio input for high pass filtering. More... | |
int | IMP_AI_DisableHpf (void) |
Disable AI high pass filtering function. More... | |
int | IMP_AO_EnableHpf (IMPAudioIOAttr *attr) |
Enable audio output for high pass filtering. More... | |
int | IMP_AO_DisableHpf (void) |
Disable AO high pass filtering function. More... | |
int | IMP_AO_SetPubAttr (int audioDevId, IMPAudioIOAttr *attr) |
Set audio input and output device attribute. More... | |
int | IMP_AO_GetPubAttr (int audioDevId, IMPAudioIOAttr *attr) |
Get audio input and output device attribute. More... | |
int | IMP_AO_Enable (int audioDevId) |
Enable audio output device. More... | |
int | IMP_AO_Disable (int audioDevId) |
Disable audio output device. More... | |
int | IMP_AO_EnableChn (int audioDevId, int aoChn) |
Enable audio output channel. More... | |
int | IMP_AO_DisableChn (int audioDevId, int aoChn) |
Disable audio output channel. More... | |
int | IMP_AO_SendFrame (int audioDevId, int aoChn, IMPAudioFrame *data, IMPBlock block) |
Send audio output frame. More... | |
int | IMP_AO_PauseChn (int audioDevId, int aoChn) |
Pause audio output channel. More... | |
int | IMP_AO_ResumeChn (int audioDevId, int aoChn) |
Resume audio output channel. More... | |
int | IMP_AO_ClearChnBuf (int audioDevId, int aoChn) |
Clear the current audio data cache in the audio output channel. More... | |
int | IMP_AO_QueryChnStat (int audioDevId, int aoChn, IMPAudioOChnState *status) |
Query the current audio data cache status in the audio output channel. More... | |
int | IMP_AENC_CreateChn (int aeChn, IMPAudioEncChnAttr *attr) |
Create audio encode channel. More... | |
int | IMP_AENC_DestroyChn (int aeChn) |
Destory audio encode channel. More... | |
int | IMP_AENC_SendFrame (int aeChn, IMPAudioFrame *frm) |
Send audio encoding audio frame. More... | |
int | IMP_AENC_PollingStream (int AeChn, unsigned int timeout_ms) |
Polling encoded audio stream cache. More... | |
int | IMP_AENC_GetStream (int aeChn, IMPAudioStream *stream, IMPBlock block) |
Get the encoded stream. More... | |
int | IMP_AENC_ReleaseStream (int aeChn, IMPAudioStream *stream) |
Releases the stream from the audio encoding channel. More... | |
int | IMP_AENC_RegisterEncoder (int *handle, IMPAudioEncEncoder *encoder) |
Register encoder. More... | |
int | IMP_AENC_ReleaseEncoder (int *handle) |
Release encoder. More... | |
int | IMP_ADEC_CreateChn (int adChn, IMPAudioDecChnAttr *attr) |
Create audio decode channel. More... | |
int | IMP_ADEC_DestroyChn (int adChn) |
Destory audio decoding channel. More... | |
int | IMP_ADEC_SendStream (int adChn, IMPAudioStream *stream, IMPBlock block) |
Send audio stream to audio decoding channel. More... | |
int | IMP_ADEC_PollingStream (int AdChn, unsigned int timeout_ms) |
Polling decode audio stream cache. More... | |
int | IMP_ADEC_GetStream (int adChn, IMPAudioStream *stream, IMPBlock block) |
Get the decoded stream. More... | |
int | IMP_ADEC_ReleaseStream (int adChn, IMPAudioStream *stream) |
Release of the stream from the audio decoding channel. More... | |
int | IMP_ADEC_ClearChnBuf (int adChn) |
Clears the current audio data cache in the audio decode channel. More... | |
int | IMP_ADEC_RegisterDecoder (int *handle, IMPAudioDecDecoder *decoder) |
Register decoder. More... | |
int | IMP_ADEC_ReleaseDecoder (int *handle) |
Unregister Decoder. More... | |
int | IMP_AI_SetVol (int audioDevId, int aiChn, int aiVol) |
ACODEC configuration. More... | |
int | IMP_AI_GetVol (int audioDevId, int aiChn, int *vol) |
Get the volume of the audio input. More... | |
int | IMP_AI_SetVolMute (int audioDevId, int aiChn, int mute) |
Set audio input mute. More... | |
int | IMP_AO_SetVol (int audioDevId, int aoChn, int aoVol) |
Set audio output channel volume. More... | |
int | IMP_AO_GetVol (int audioDevId, int aoChn, int *vol) |
Get audio output channel volume. More... | |
int | IMP_AO_SetVolMute (int audioDevId, int aoChn, int mute) |
Set audio output mute. More... | |
int | IMP_AI_SetGain (int audioDevId, int aiChn, int aiGain) |
Set audio input gain. More... | |
int | IMP_AI_GetGain (int audioDevId, int aiChn, int *aiGain) |
Get AI gain value. More... | |
int | IMP_AO_SetGain (int audioDevId, int aoChn, int aoGain) |
Set audio output gain. More... | |
int | IMP_AO_GetGain (int audioDevId, int aoChn, int *aoGain) |
Get audio output gain. More... | |
int | IMP_AO_Soft_Mute (int audioDevId, int aoChn) |
Output soft mute control. More... | |
int | IMP_AO_Soft_UNMute (int audioDevId, int aoChn) |
Output soft unmute control. More... | |
int | IMP_AI_GetFrameAndRef (int audioDevId, int aiChn, IMPAudioFrame *frm, IMPAudioFrame *ref, IMPBlock block) |
Get audio frame and output reference frame. More... | |
int | IMP_AI_EnableAecRefFrame (int audioDevId, int aiChn, int audioAoDevId, int aoChn) |
Open access reference frame. More... | |
int | IMP_AI_DisableAecRefFrame (int audioDevId, int aiChn, int audioAoDevId, int aoChn) |
Close access to the reference frame. More... | |
int | IMP_AO_CacheSwitch (int audioDevId, int aoChn, int cache_en) |
close audio play cache More... | |
int | IMP_AO_FlushChnBuf (int audioDevId, int aoChn) |
IMP audio input and output header file.