#include <applications/nrf_audio/src/audio/audio_system.h>
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_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. |
- Return values
-
| -EINVAL | Invalid sample rate given. |
| 0 | On success. |