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(); } }
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(); }
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); }
protected Effect(String name, System.Xml.XmlReader reader) { Name = name; Active = reader.GetBooleanAttributeOrDefault(Name + "_Active", false); Random = reader.GetBooleanAttributeOrDefault(Name + "_Random", false); }