def src_simple(input_data, output_data, ratio, converter_type, channels):
input_frames, _ = _check_data(input_data)<EOL>output_frames, _ = _check_data(output_data)<EOL>data = ffi.new('<STR_LIT>')<EOL>data.input_frames = input_frames<EOL>data.output_frames = output_frames<EOL>data.src_ratio = ratio<EOL>data.data_in = ffi.cast('<STR_LIT>', ffi.from_buffer(input_data))<EOL>data.data_out = ffi.cast('<STR_LIT>', ffi.from_buffer(output_data))<EOL>error = _lib.src_simple(data, converter_type, channels)<EOL>return error, data.input_frames_used, data.output_frames_gen<EOL>
Perform a single conversion from an input buffer to an output buffer.

    Simple interface for performing a single conversion from input buffer to
    output buffer at a fixed conversion ratio. Simple interface does not require
    initialisation as it can only operate on a single buffer worth of audio.