![]() |
nRF Connect SDK API 3.4.99
|
| int audio_system_config_set | ( | uint32_t | encoder_sample_rate_hz, |
| uint32_t | encoder_bitrate, | ||
| uint32_t | decoder_sample_rate_hz ) |
#include <audio_system.h>
Set the sample rates for the encoder and the decoder, and the bit rate for encoder.
| [in] | encoder_sample_rate_hz | Sample rate to be used by the encoder; can be 0. |
| [in] | encoder_bitrate | Bit rate to be used by the encoder (bps); can be 0. |
| [in] | decoder_sample_rate_hz | Sample rate to be used by the decoder; can be 0. |
| -EINVAL | Invalid sample rate given. |
| 0 | On success. |