This file contains the pad functions used in the decoder element. These functions are wrappers that call the decoder specific implementation defined in DecoderHandlerType.
More...
#include "audio_cfg.h"
#include "streamer.h"
#include "decoder.h"
#include "decoder_pads.h"
◆ decoder_src_pad_activation_handler()
uint8_t decoder_src_pad_activation_handler |
( |
StreamPad * | pad, |
|
|
uint8_t | active ) |
This function is an empty implementation of the src pad activation handler.
- Parameters
-
pad | pad handle |
active | activate/deactivate pad |
- Returns
- PAD ERROR
◆ decoder_src_pad_event_handler()
uint8_t decoder_src_pad_event_handler |
( |
StreamPad * | pad, |
|
|
StreamEvent * | event ) |
This function is the empty implementation of the src pad event handler.
- Parameters
-
pad | pad handle |
event | event enumeration |
- Returns
- PAD ERROR
◆ decoder_src_pad_query_handler()
uint8_t decoder_src_pad_query_handler |
( |
StreamPad * | pad, |
|
|
StreamQuery * | query ) |
This function is the empty implementation of the src pad query handler.
- Parameters
-
- Returns
- uint8_t
◆ decoder_sink_pad_activation_handler()
uint8_t decoder_sink_pad_activation_handler |
( |
StreamPad * | pad, |
|
|
uint8_t | active ) |
This function is calls the specified decoder implementation of the sink pad activation handler.
- Parameters
-
pad | pad handle |
active | activate/deactivate pad |
- Returns
- PAD ERROR
◆ decoder_sink_pad_event_handler()
uint8_t decoder_sink_pad_event_handler |
( |
StreamPad * | pad, |
|
|
StreamEvent * | event ) |
This function is the calls the specified decoder implementation ofthe sink pad event handler.
- Parameters
-
pad | pad handle |
event | event enumeration |
- Returns
- PAD ERROR
◆ decoder_sink_pad_chain_handler()
This function calls the specified decoder implementation of the sink pad chain handler. This is used in push mode, to receive data passed from peer.
- Parameters
-
pad | pad handle |
buffer | input buffer |
- Returns
- PAD ERROR
◆ decoder_sink_pad_process_handler()
int32_t decoder_sink_pad_process_handler |
( |
StreamPad * | pad | ) |
|
This function calls the specified decoder implementation of the sink pad process handler. This is used in pull mode, to request data from peer.
- Parameters
-
- Returns
- PAD ERROR