The officer shall, as soon as practicable, file a duplicate notice with the magistrate specified in the notice. The defendant may, prior to the date upon which he or she promised to appear in court, deposit with the magistrate the amount of bail set by such magistrate. Thereafter, at the time when the case is called for arraignment before the magistrate, if the defendant does not appear, either in person or by counsel, the magistrate may declare the bail forfeited and may, at his or her discretion, order that no further proceedings shall be had in such case. Upon the making of such order that no further proceedings be had, sums deposited as bail shall forthwith be paid into the county treasury for distribution as provided by the Penal Code of the state.