nRF Connect SDK API 0.1.0
|
int sample_rate_converter_open | ( | struct sample_rate_converter_ctx * | ctx | ) |
#include <include/sample_rate_converter.h>
Open the sample rate converter for a new context.
Sets the entire context to 0 to ensure it is ready for a new sample rate conversion context. This should be done before a context is used with a new stream, and does not need to be called if the parameters for a conversion context changes during the stream.
[out] | ctx | Pointer to the sample rate conversion context. |
0 | On success. |
-EINVAL | NULL pointer given for context. |