|
static uint8_t | memsink_sink_pad_activation_handler (StreamPad *pad, uint8_t active) |
| This function activates the sink pad and allocates memory for the memory sink element.
|
|
static FlowReturn | memsink_sink_pad_chain_handler (StreamPad *pad, StreamBuffer *buf) |
| This pad function accumulates data from the decoder and pushes it onto the selected audio driver. The audio sink maintains a double buffer and starts sending data once both the buffers are full. It blocks if the previous data is not sent out by the driver for some reason.
|
|
static uint8_t | memsink_sink_pad_event_handler (StreamPad *pad, StreamEvent *event) |
| This function is the calls the specified audio device driver implementation of the sink pad event handler.
|
|
static int32_t | memsink_change_state (StreamElement *element_ptr, PipelineState new_state) |
| This function changes the memory sink state and calls the appropriate apis for that state and takes the actions and then returns. PipelineState Transition: NULL to READY: Nothing to do READY to PAUSE: Activate sink pads and their peer pads PAUSE to PLAY: Start Writing PAUSE to READY: Deactivate sink pads and their peer pads READY to NULL: Nothing to do.
|
|
static uint8_t | memsink_sink_pad_query_handler (StreamPad *pad, StreamQuery *query) |
| This pad function handles query from the pipeline. If not able to handle the query then it pushes the query to its peer.
|
|
static int32_t | memsink_set_property (StreamElement *element_ptr, uint16_t prop, uint32_t val) |
| This function sets mem sink element's properties.
|
|
static int32_t | memsink_get_property (StreamElement *element_ptr, uint16_t prop, uint32_t *val_ptr) |
| This function gets mem sink element's properties.
|
|
int32_t | memsink_init_element (StreamElement *element_ptr) |
| This function initializes the memory sink element and sink pads.
|
|
int32_t | memsink_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.
|
|
int32_t | memsink_set_raw_write_mode (ElementHandle element_hdl, uint8_t raw_write_mode) |
| This function sets the raw write mode or the packet header mode to write to memory. (write_mode == true) means only data will be written (no packet headers) (write_mode == false) means packet header will be written aOSA_LONG with data.
|
|