Beispiel #1
0
        public override void Apply(Cue cue, XACTClip track, float elapsedTime)
        {
            SetValueEvent evt = (SetValueEvent)Event;

            switch (evt.Property)
            {
            case CueProperty.Volume:
                cue.eventVolume = evt.GetVolume(cue.eventVolume);
                break;

            case CueProperty.Pitch:
                cue.eventPitch = evt.GetPitch(cue.eventPitch);
                break;
            }

            HandleRepeating();
        }
 public void SetValue(string value)
 {
     SetValueEvent?.Invoke(this, value);
 }
Beispiel #3
0
 public SetValueEventInstance(SetValueEvent evt)
     : base(evt)
 {
 }