7#ifndef _AUDIO_DATAPATH_H_
8#define _AUDIO_DATAPATH_H_
10#include <zephyr/kernel.h>
63 uint32_t recv_frame_ts_us);
int audio_datapath_pres_delay_us_set(uint32_t delay_us)
Set the presentation delay.
int audio_datapath_start(struct data_fifo *fifo_rx)
Start the audio datapath module.
void audio_datapath_tone_stop(void)
Stops tone playback.
void audio_datapath_pres_delay_us_get(uint32_t *delay_us)
Get the current presentation delay.
void audio_datapath_stream_out(const uint8_t *buf, size_t size, uint32_t sdu_ref_us, bool bad_frame, uint32_t recv_frame_ts_us)
Input an audio data frame which is processed and outputted over I2S.
int audio_datapath_tone_play(uint16_t freq, uint16_t dur_ms, float amplitude)
Mixes a tone into the I2S TX stream.
int audio_datapath_init(void)
Initialize the audio datapath module.
int audio_datapath_stop(void)
Stop the audio datapath module.
Data first-in first-out library header.
Definition data_fifo.h:34