anx.framework/ANX.Framework/Audio/XactParser/XactGeneralSettingsRpcCurve.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

33 lines
1.0 KiB
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 XactGeneralSettingsRpcCurve
{
// what variable this curve involves
public ushort VariableIndex { get; private set; }
// which parameter the curve affects refer to the above constants
public short Parameters { get; private set; }
public XactGeneralSettingsRpcCurvePoint[] Points { get; private set; }
public XactGeneralSettingsRpcCurve(BinaryReader reader)
{
VariableIndex = reader.ReadUInt16();
byte numberOfCurvePoints = reader.ReadByte();
Parameters = reader.ReadInt16();
Points = new XactGeneralSettingsRpcCurvePoint[numberOfCurvePoints];
for (int pointIndex = 0; pointIndex < numberOfCurvePoints; pointIndex++)
Points[pointIndex] = new XactGeneralSettingsRpcCurvePoint(reader);
}
}
}