A state witness is one of two or more persons jointly charged with the commission of a crime but who is discharged with his consent as such accused so that he may be a witness for the State