Beispiel #1
0
 public IntEffect(String name, System.Xml.XmlReader reader, int defaultValue)
     : base(name, reader)
 {
     FixValue       = reader.GetIntegerAttributeOrDefault(Name + "_FixValue", defaultValue);
     MinRandomValue = reader.GetIntegerAttributeOrDefault(Name + "_MinRandom", defaultValue);
     MaxRandomValue = reader.GetIntegerAttributeOrDefault(Name + "_MaxRandom", defaultValue);
 }
Beispiel #2
0
 internal Effects(System.Xml.XmlReader reader)
 {
     Volume          = reader.GetIntegerAttribute("Volume");
     FadeInTime      = reader.GetIntegerAttributeOrDefault("FadeIn", 0);
     FadeOutTime     = reader.GetIntegerAttributeOrDefault("FadeOut", 0);
     CrossFading     = reader.GetBooleanAttributeOrDefault("CrossFading", false);
     HasRandomVolume = reader.GetBooleanAttributeOrDefault("HasRandomVolume", false);
     MinRandomVolume = reader.GetIntegerAttributeOrDefault("MinRandomVolume", 50);
     MaxRandomVolume = reader.GetIntegerAttributeOrDefault("MaxRandomVolume", 100);
     m_Pitch         = new IntEffect("Pitch", reader, 0);
     m_Balance       = new BalanceEffect(reader);
     m_Volume        = new IntEffect("Volume", reader, 0);
     m_Speakers      = new SpeakerAssignmentEffect(reader);
     m_Reverb        = new ReverbEffect(reader);
     m_Tempo         = new IntEffect("Tempo", reader, 0);
     #region tdmod
     m_CueIn  = new CueEffect("CueIn", reader);
     m_CueOut = new CueEffect("CueOut", reader);
     #endregion
     if (reader.IsEmptyElement)
     {
         reader.Read();
     }
     else
     {
         reader.Read();
         reader.ReadInnerXml();
         reader.ReadEndElement();
     }
 }
Beispiel #3
0
 public BalanceEffect(System.Xml.XmlReader reader)
     : base("Balance", reader, 0)
 {
     IsPanning    = reader.GetBooleanAttributeOrDefault("Balance_Panning", false);
     PanningStart = reader.GetIntegerAttributeOrDefault("Balance_PanStart", 0);
     PanningEnd   = reader.GetIntegerAttributeOrDefault("Balance_PanEnd", 0);
 }
Beispiel #4
0
 internal LightEffects(System.Xml.XmlReader reader)
     : base(reader)
 {
     m_SetsMasterBrightness = reader.GetBooleanAttributeOrDefault("SetsMasterBrightness", false);
     m_MasterBrightness     = reader.GetIntegerAttributeOrDefault("MasterBrightness", 255);
     m_SetsLeftRightMix     = reader.GetBooleanAttributeOrDefault("SetsLeftRightMix", false);
     m_LeftRightMix         = reader.GetIntegerAttributeOrDefault("LeftRightMix", 127);
     m_SetsLeftScene        = reader.GetBooleanAttributeOrDefault("SetsLeftScene", false);
     m_LeftScene            = reader.GetIntegerAttributeOrDefault("LeftScene", 1);
     m_SetsRightScene       = reader.GetBooleanAttributeOrDefault("SetsRightScene", false);
     m_RightScene           = reader.GetIntegerAttributeOrDefault("RightScene", 1);
     reader.Read();
 }
Beispiel #5
0
 public CueEffect(String name, System.Xml.XmlReader reader)
     : base(name, reader)
 {
     Position = ((double)reader.GetIntegerAttributeOrDefault(this.Name + "_Position", 0)) / 1000.0;
 }
Beispiel #6
0
 public ReverbEffect(System.Xml.XmlReader reader)
     : base("Reverb", reader)
 {
     Delay = reader.GetIntegerAttributeOrDefault("Reverb_Delay", 1200);
     Level = reader.GetIntegerAttributeOrDefault("Reverb_Level", 0);
 }
Beispiel #7
0
 public SpeakerAssignmentEffect(System.Xml.XmlReader reader)
     : base("Speakers", reader)
 {
     Assignment = (SpeakerAssignment)reader.GetIntegerAttributeOrDefault("Speakers_Assignment", (int)SpeakerAssignment.Default);
 }