Ejemplo n.º 1
0
        /// <summary>
        /// Applies a particular Jfx to this JSong.
        /// </summary>
        /// <param name="effect">The Jfx to be applied.</param>
        public void ApplyJfx(Jfx effect)
        {
            cached = properties;

            properties.Volume += effect.ChangeInVolume;
            properties.Pitch  += effect.PitchChange;
            properties.Tempo  += effect.TempoChange;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the properties of the Jsong
 /// to the properties it previously had.
 /// </summary>
 public void Revert()
 {
     properties = cached;
 }