anx.framework/ANX.Framework/Audio/XactParser/XactGeneralSettingsVariable.cs
SND\AstrorEnales_cp ef734ddcd3 Implemented the MediaPlayer and MediaQueue classes as preparation for native Song playback.
Also added the FrameworkDispatcher calls in the Game class.
Checking for possible fire and forget sound instances to be disposed in the FrameworkDispatcher update chain.
2015-03-15 01:11:17 +01:00

35 lines
919 B
C#

using System;
using System.IO;
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Audio.XactParser
{
internal class XactGeneralSettingsVariable
{
public enum VariableFlags
{
Public = 0x01,
ReadOnly = 0x02,
CueInstance = 0x04,
Reserved = 0x08,
}
public VariableFlags Flags { get; private set; }
public float StartingValue { get; set; }
public float MinValue { get; private set; }
public float MaxValue { get; private set; }
public string Name;
public XactGeneralSettingsVariable(BinaryReader reader)
{
Flags = (VariableFlags)reader.ReadByte();
StartingValue = reader.ReadSingle();
MinValue = reader.ReadSingle();
MaxValue = reader.ReadSingle();
}
}
}