Пример #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;
        }
Пример #2
0
 /// <summary>
 /// Sets the properties of the Jsong
 /// to the properties it previously had.
 /// </summary>
 public void Revert()
 {
     properties = cached;
 }