|
static int32_t | audiosrc_src_process (StreamPad *pad) |
| Function is the loop function of the audiosrc source pad which runs in the task thread. It reads the chunk_size of data and pushes it to peer element sink pad.
|
|
static FlowReturn | audiosrc_src_pull_handler (StreamPad *pad, StreamBuffer *buffer, uint32_t size, uint32_t offset) |
| Function is the pull function of the audiosrc source pad in SCHEDULING_PULL mode. It reads the size of data from the offset to buffer.
|
|
static int32_t | audiosrc_change_state (StreamElement *element, PipelineState state) |
| Function handles the state change of the element in a pipeline.
|
|
static uint8_t | audiosrc_handle_src_event (StreamPad *pad, StreamEvent *event) |
| Function handles the events of the element source pad.
|
|
static uint8_t | audiosrc_handle_src_query (StreamPad *pad, StreamQuery *query) |
| This function is the empty impl of the src pad query handler.
|
|
static uint8_t | audiosrc_src_activate_push (StreamPad *pad, uint8_t active) |
| Activates or deactivates the audiosrc source pad in PUSH mode.
|
|
static uint8_t | audiosrc_src_activate_pull (StreamPad *pad, uint8_t active) |
| Activates or deactivates the audiosrc source pad in PUSH mode.
|
|
static uint8_t | audiosrc_src_activate (StreamPad *pad, uint8_t active) |
| Queue src pad activation handler. Activation is handled by the peer sink pad, this should just handle the deactivation.
|
|
static int32_t | audiosrc_get_property (StreamElement *element_ptr, uint16_t prop, uint64_t *val_ptr) |
| This function get audio source element properties.
|
|
static int32_t | audiosrc_set_property (StreamElement *element_ptr, uint16_t prop, uint32_t val) |
| This function set audio source element properties.
|
|
static int32_t | audiosrc_set_device_name (ElementHandle element, const char *device_name, const char *output_device_name) |
| This function sets the device name.
|
|
static int32_t | audiosrc_set_device_type (ElementHandle element, uint32_t device_type) |
| This function sets the device driver type.
|
|
static int32_t | audiosrc_set_push_chunk_size (ElementHandle element, uint32_t chunk_size) |
| This function sets the chunk size in which the audio source sends the data when src pad is activated in push mode.
|
|
static int32_t | audiosrc_get_push_chunk_size (ElementHandle element, uint64_t *chunk_size) |
| This function gets the chunk size.
|
|
static int32_t | audiosrc_set_sampling_rate (ElementHandle element, uint32_t sample_rate) |
| This function sets the device name.
|
|
static int32_t | audiosrc_set_continuous_read (ElementHandle element, bool continuous_read) |
| This function sets the continuous read property.
|
|
static int32_t | audiosrc_set_dummy_tx_enable (ElementHandle element, bool dummy_tx) |
| This function sets the dummy rx enable property.
|
|
static int32_t | audiosrc_set_num_channels (ElementHandle element, uint32_t num_channels) |
| This function sets the number of channels in which the audio source sends the data when src pad is activated in push mode.
|
|
int32_t | audiosrc_init (StreamElement *element) |
| This function initializes audio source element and its source pads.
|
|
static int32_t | audiosrc_set_bits_per_sample (ElementHandle element, uint32_t bits_per_sample) |
| This function sets the number of channels in which the audio source sends the data when src pad is activated in push mode.
|
|
static int32_t | audiosrc_set_frame_ms (ElementHandle element, uint32_t frame_ms) |
| This function sets the number of frame millisecond in which the audio source sends the data when src pad is activated in push mode.
|
|
static FlowReturn | audiosrc_read (ElementAudioSrc *audiosrc, uint32_t offset, uint32_t length, StreamBuffer *buf) |
| Function reads the data from the file specified by the element. NOTE: Function may or may not be able to read the required length of data.
|
|