/// <summary> /// Depending on the driver this might need to be called, it should be safe to call even if the driver is auto updating. /// </summary> public void Update() { if (ModDriver.Driver != null && !ModDriver.Driver.AutoUpdating) { ModDriver.MikMod_Update(); } }
// Fast forward will mute all the channels and mute the driver then update mikmod till it reaches the song position that is requested // then it will unmute and unpause the audio after. // this makes sure that no sound is heard while fast forwarding. // the bonus of fast forwarding over setting the position is that it will know the real state of the mod. public void FastForwardTo(int position) { ModPlayer.Player_Mute_Channel(SharpMik.SharpMikCommon.MuteOptions.MuteAll, null); ModDriver.Driver_Pause(true); while (ModPlayer.mod.sngpos != position) { ModDriver.MikMod_Update(); } ModDriver.Driver_Pause(false); ModPlayer.Player_UnMute_Channel(SharpMik.SharpMikCommon.MuteOptions.MuteAll, null); }