This file includes defines, enums and typedefs for audio_proc.
More...
|
#define | AUDIO_CHUNK_SIZE(pstaudio_packet) ((pstaudio_packet)->chunk_size) |
| Get audio chunk size.
|
|
#define | AUDIO_SAMPLE_RATE(pstaudio_packet) ((pstaudio_packet)->sample_rate) |
| Get audio sample rate.
|
|
#define | AUDIO_NUM_CHANNELS(pstaudio_packet) ((pstaudio_packet)->num_channels) |
| Get audio number of channels.
|
|
|
typedef int(* | AudioProcInitFunc) (void *) |
| audio sink initialize function proto type
|
|
typedef int(* | AudioProcPostProcFunc) (void *, void *, int) |
| audio sink post process function proto type
|
|
typedef int(* | AudioProcDeinitFunc) (void) |
| audio sink deinitialize function proto type
|
|
◆ audio_proc_set_buffer()
int32_t audio_proc_set_buffer |
( |
ElementHandle |
element_hdl, |
|
|
char * |
location_ptr, |
|
|
uint32_t |
size |
|
) |
| |
- Parameters
-
element_hdl | element handle |
location_ptr | location path |
size | buffer size |
- Returns
- StreamReturnType
- Return values
-
STREAM_OK | success |
STREAM_ERR_INVALID_ARGS | invalid parameters |
STREAM_ERR_GENERAL | status is bigger than or eque to STATE_PAUSED |
◆ audio_proc_init_element()
int32_t audio_proc_init_element |
( |
StreamElement * |
element_ptr | ) |
|
- Parameters
-
element_ptr | pointer of audio_proc element instance |
- Returns
- StreamReturnType
- Return values
-
STREAM_OK | success |
STREAM_ERR_ELEMENT_NOT_FOUND | invalid instance pointer of element_ptr |
◆ audio_proc_register_ext_processing()
- Parameters
-
element | audio_proc element handle |
init_func_ptr | initialization function pointer |
proc_func_ptr | processing function pointer |
deinit_func_ptr | deinit function pointer |
arg_ptr | arguments pointer |
- Returns
- STREAM_OK
-
STREAM_ERR_INVALID_ARGS