nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
audio_system.h File Reference
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

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.
 
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_decode (void const *const encoded_data, size_t encoded_data_size, bool bad_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_fifo_rx_block_drop (void)
 Drop oldest block from the fifo_rx buffer.
 
int audio_system_decoder_num_ch_get (void)
 Get number of decoder channels.
 
int audio_system_init (void)
 Initialize the audio_system.