![]() |
Maestro Audio Framework
v 1.7
NXP Semiconductors
|
Implementation of streamer message handlers. More...
#include <string.h>#include "pipeline.h"#include "file_src_freertos.h"#include "streamer_element_properties.h"Data Structures | |
| struct | ElementPropertyLookup |
| Element index and property. More... | |
| #define | ELEMENT_NOT_USED (-1) |
| Element not used index. | |
| static ElementPropertyLookup | property_lookup_table [] |
| int | streamer_msg_get_track_info (STREAMER_T *streamer, void *msg_data) |
| Streamer Get Track Inforamtion from a pipeline. More... | |
| int | streamer_msg_set_state (STREAMER_T *task_data, void *msg_data) |
| Streamer Set Pipeline State. More... | |
| int | streamer_msg_get_state (STREAMER_T *task_data, void *msg_data) |
| Streamer Get State. More... | |
| int | streamer_msg_send_query (STREAMER_T *task_data, void *msg_data) |
| Streamer Send Query. More... | |
| int | streamer_msg_seek_pipeline (STREAMER_T *task_data, void *msg_data) |
| Streamer Seek Pipeline. More... | |
| static int | streamer_get_element_index (STREAMER_T *task_data, ELEMENT_PROPERTY_T property) |
| Streamer get element index. More... | |
| int | streamer_msg_set_property (STREAMER_T *task_data, void *msg_data) |
| Streamer Set Property. More... | |
| int | streamer_msg_get_property (STREAMER_T *task_data, void *msg_data) |
| Streamer Get Property. More... | |
| int | streamer_msg_set_file (STREAMER_T *task_data, void *msg_data) |
| Streamer message set file. More... | |
| int | streamer_msg_set_repeat (STREAMER_T *task_data, void *msg_data) |
| Streamer Set Pipeline State. More... | |
| int streamer_msg_get_track_info | ( | STREAMER_T * | streamer, |
| void * | msg_data | ||
| ) |
Handles request to get track information from a pipeline object.
| [in] | streamer | Pointer to streamer structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | State retrieved successfully. |
| STREAM_ERR_INVALID_ARGS | Invalid pipeline object |
| int streamer_msg_set_state | ( | STREAMER_T * | task_data, |
| void * | msg_data | ||
| ) |
Handles request to set the state of a pipeline object.
| [in] | task_data | Pointer to task data structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | State retrieved successfully. |
| STREAM_ERR_INVALID_ARGS | Invalid pipeline object |
| int streamer_msg_get_state | ( | STREAMER_T * | task_data, |
| void * | msg_data | ||
| ) |
Handles request to get the state of a pipeline object. State will be sent back to the application through the callback function.
| [in] | task_data | Pointer to task data structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | Success |
| STREAM_ERR_INVALID_ARGS | Invalid argument |
| int streamer_msg_send_query | ( | STREAMER_T * | task_data, |
| void * | msg_data | ||
| ) |
Handles request to send a query to a pipeline object. Query data is returned through the callback function.
| [in] | task_data | Pointer to task data structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | Query successful |
| STREAM_ERR_INFO_ABSENT | Query unsuccessful. Info not present |
| STREAM_ERR_INVALID_ARGS | Invalid pipeline object |
| int streamer_msg_seek_pipeline | ( | STREAMER_T * | task_data, |
| void * | msg_data | ||
| ) |
Handles request to seek to a specified time in an audio stream
| [in] | task_data | Pointer to task data structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | Seek successful |
| STREAM_ERR_INVALID_ARGS | Invalid Pipeline object |
| STREAM_ERR_NOT_SEEKABLE | Pipeline does not support seeking |
|
static |
| task_data | streamer object |
| property | element property |
| int streamer_msg_set_property | ( | STREAMER_T * | task_data, |
| void * | msg_data | ||
| ) |
Set an element specific property value
| [in] | task_data | Pointer to task data structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | Property successfully set. |
| STREAM_ERR_INVALID_ARGS | Invalid arguments |
| int streamer_msg_get_property | ( | STREAMER_T * | task_data, |
| void * | msg_data | ||
| ) |
Get an element specific property value
| [in] | task_data | Pointer to task data structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | Property successfully retrieved. |
| STREAM_ERR_INVALID_ARGS | Invalid arguments |
| int streamer_msg_set_file | ( | STREAMER_T * | task_data, |
| void * | msg_data | ||
| ) |
| [in] | task_data | Pointer to task data structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | Property successfully retrieved. |
| STREAM_ERR_INVALID_ARGS | Invalid arguments |
| int streamer_msg_set_repeat | ( | STREAMER_T * | task_data, |
| void * | msg_data | ||
| ) |
Handles request to set the state of a pipeline object.
| [in] | task_data | Pointer to task data structure |
| [in] | msg_data | Pointer to Message Data |
| STREAM_OK | State retrieved successfully. |
| STREAM_ERR_INVALID_ARGS | Invalid pipeline object |
|
static |
This table is used to indentify which element in the pipeline a property is associated with. Properties can be used to configure the individual pipeline elements.