nRF Connect SDK API 0.1.0
|
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.
[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. |