nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
audio_datapath.h File Reference
#include <zephyr/kernel.h>
#include <stdint.h>
#include <stdbool.h>
#include <data_fifo.h>
#include "sw_codec_select.h"

Go to the source code of this file.

Functions

int audio_datapath_tone_play (uint16_t freq, uint16_t dur_ms, float amplitude)
 Mixes a tone into the I2S TX stream.
 
void audio_datapath_tone_stop (void)
 Stops tone playback.
 
int audio_datapath_pres_delay_us_set (uint32_t delay_us)
 Set the presentation delay.
 
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_start (struct data_fifo *fifo_rx)
 Start the audio datapath module.
 
int audio_datapath_stop (void)
 Stop the audio datapath module.
 
int audio_datapath_init (void)
 Initialize the audio datapath module.