def src_process(state, input_data, output_data, ratio, end_of_input=<NUM_LIT:0>):
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>data.end_of_input = end_of_input<EOL>error = _lib.src_process(state, data)<EOL>return error, data.input_frames_used, data.output_frames_gen<EOL>
Standard processing function.

    Returns non zero on error.