When the complaint is for a felony, upon the accused being brought before the magistrate, he shall proceed as soon as may be, in the presence of the accused, to inquire into the complaint.