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

◆ sample_rate_converter_open()

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.

Parameters
[out]ctxPointer to the sample rate conversion context.
Return values
0On success.
-EINVALNULL pointer given for context.