nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
Audio System

Core audio system API for Audio applications. More...

Macros

#define VALUE_NOT_SET   0
 

Functions

void audio_system_encoder_start (void)
 Start the execution of the encoder thread.
 
void audio_system_encoder_stop (void)
 Stop the encoder thread from executing.
 
bool audio_system_encoder_is_started (void)
 Check if the encoder thread is currently enabled to execute.
 
int audio_system_encode_test_tone_set (uint32_t freq)
 Toggle a test tone on and off.
 
int audio_system_encode_test_tone_step (void)
 Step through different test tones.
 
int audio_system_config_set (uint32_t encoder_sample_rate_hz, uint32_t encoder_bitrate, uint32_t decoder_sample_rate_hz)
 Set the sample rates for the encoder and the decoder, and the bit rate for encoder.
 
int audio_system_encoder_num_ch_set (uint32_t locations)
 Set the number of channels for the encoder based on the given audio locations.
 
int audio_system_decode (struct net_buf *audio_frame)
 Decode data and then add it to TX FIFO buffer.
 
void audio_system_start (void)
 Initialize and start both HW and SW audio codec.
 
void audio_system_stop (void)
 Stop all activities related to audio.
 
int audio_system_decoder_num_ch_get (void)
 Get number of decoder channels.
 
int audio_system_init (void)
 Initialize the audio system.
 

Detailed Description

Core audio system API for Audio applications.

This module provides the central audio processing functionality for the Audio applications, managing both hardware (DAC/ADC) and software codecs (such as LC3).