Maestro Audio Framework v 1.4
NXP Semiconductors
eap.h File Reference

This file includes defines, enums and typedefs for eap. More...

#include "streamer_element.h"

Data Structures

struct  ElementEap
 VIT sink element's data structure. More...
 

Macros

#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.
 

Typedefs

typedef int(* EapInitFunc) (void *)
 audio sink initialize function proto type
 
typedef int(* EapPostProcFunc) (void *, void *, int)
 audio sink post process function proto type
 
typedef int(* EapDeinitFunc) (void)
 audio sink deinitialize function proto type
 

Functions

int32_t eap_set_buffer (ElementHandle element_hdl, char *location_ptr, uint32_t size)
 Set the location of the memory buffer to write to as well as the size. More...
 
int32_t eap_init_element (StreamElement *element_ptr)
 This function initializes the eap element and pads. More...
 
int32_t eap_register_ext_processing (ElementHandle element, EapInitFunc init_func_ptr, EapPostProcFunc proc_func_ptr, EapDeinitFunc deinit_func_ptr, void *arg_ptr)
 Register function pointers and arguments. More...
 

Function Documentation

◆ eap_set_buffer()

int32_t eap_set_buffer ( ElementHandle  element_hdl,
char *  location_ptr,
uint32_t  size 
)
Parameters
element_hdlelement handle
location_ptrlocation path
sizebuffer size
Returns
StreamReturnType
Return values
STREAM_OKsuccess
STREAM_ERR_INVALID_ARGSinvalid parameters
STREAM_ERR_GENERALstatus is bigger than or eque to STATE_PAUSED

◆ eap_init_element()

int32_t eap_init_element ( StreamElement *  element_ptr)
Parameters
element_ptrpointer of eap element instance
Returns
StreamReturnType
Return values
STREAM_OKsuccess
STREAM_ERR_ELEMENT_NOT_FOUNDinvalid instance pointer of element_ptr

◆ eap_register_ext_processing()

int32_t eap_register_ext_processing ( ElementHandle  element,
EapInitFunc  init_func_ptr,
EapPostProcFunc  proc_func_ptr,
EapDeinitFunc  deinit_func_ptr,
void *  arg_ptr 
)
Parameters
elementeap element handle
init_func_ptrinitialization function pointer
proc_func_ptrprocessing function pointer
deinit_func_ptrdeinit function pointer
arg_ptrarguments pointer
Returns
STREAM_OK
STREAM_ERR_INVALID_ARGS