def src_new(converter_type, channels):
error = ffi.new('<STR_LIT>')<EOL>state = _lib.src_new(converter_type, channels, error)<EOL>return state, error[<NUM_LIT:0>]<EOL>
Initialise a new sample rate converter.

    Parameters
    ----------
    converter_type : int
        Converter to be used.
    channels : int
        Number of channels.

    Returns
    -------
    state
        An anonymous pointer to the internal state of the converter.
    error : int
        Error code.