Fixed a bug when processing loop boundaries in SONG_EV_SS_WAV events.