The court may fix a time and place for a hearing on the motion unless waived by the defendant, arrested person, prosecuting attorney, and victim. The court may require the filing of such affidavits and may require the taking of such evidence as it deems proper.
SDCL 23A-3-29