nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ audio_system_config_set()

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.

Note
If any of the values are 0, the corresponding configuration will not be set.
Parameters
[in]encoder_sample_rate_hzSample rate to be used by the encoder; can be 0.
[in]encoder_bitrateBit rate to be used by the encoder (bps); can be 0.
[in]decoder_sample_rate_hzSample rate to be used by the decoder; can be 0.
Return values
-EINVALInvalid sample rate given.
0On success.