|
oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
|
Hardware-backed source and sink node factories for the audio graph. More...

Data Structures | |
| struct | ove_audio_device_cfg |
| Configuration descriptor for a hardware audio device node. More... | |
Enumerations | |
| enum | ove_audio_transport { OVE_AUDIO_TRANSPORT_I2S , OVE_AUDIO_TRANSPORT_PDM , OVE_AUDIO_TRANSPORT_SDL2 } |
| Audio hardware transport type. More... | |
Functions | |
| int | ove_audio_device_source (struct ove_audio_graph *g, const struct ove_audio_device_cfg *cfg, const char *name) |
| Add a hardware audio source node to the graph. | |
| int | ove_audio_device_sink (struct ove_audio_graph *g, const struct ove_audio_device_cfg *cfg, const char *name) |
| Add a hardware audio sink node to the graph. | |
Hardware-backed source and sink node factories for the audio graph.
Provides factory functions that register hardware audio devices (I2S, PDM, SDL2) directly as source or sink nodes inside an ove_audio_graph. Each factory allocates and configures the necessary backend driver state and adds the node in one call.
CONFIG_OVE_AUDIO. | enum ove_audio_transport |
| int ove_audio_device_source | ( | struct ove_audio_graph * | g, |
| const struct ove_audio_device_cfg * | cfg, | ||
| const char * | name | ||
| ) |
Add a hardware audio source node to the graph.
Creates a source node backed by the hardware device described in cfg and registers it with the graph. The node captures audio from the selected transport and exposes it as graph output each cycle.
| [in] | g | Graph instance in the OVE_AUDIO_GRAPH_IDLE state. |
| [in] | cfg | Device configuration describing the transport and format. |
| [in] | name | Human-readable node name for diagnostics. |
CONFIG_OVE_AUDIO. | int ove_audio_device_sink | ( | struct ove_audio_graph * | g, |
| const struct ove_audio_device_cfg * | cfg, | ||
| const char * | name | ||
| ) |
Add a hardware audio sink node to the graph.
Creates a sink node backed by the hardware device described in cfg and registers it with the graph. The node consumes audio from its upstream connection and delivers it to the selected transport each processing cycle.
| [in] | g | Graph instance in the OVE_AUDIO_GRAPH_IDLE state. |
| [in] | cfg | Device configuration describing the transport and format. |
| [in] | name | Human-readable node name for diagnostics. |
CONFIG_OVE_AUDIO.