Code/SFXREffect.cs
using System;
using Sandbox;
namespace SFXR;
public abstract class SFXREffect : Component
{
/// <summary>
/// Applies the effect to a sample
/// </summary>
/// <param name="samples">Samples to apply the effect to</param>
/// <param name="sound">Sound applying the effect to</param>
/// <returns>Sample with the effect applied</returns>
public abstract short[] Apply( short[] samples, SFXRComponent sound );
/// <summary>
/// Sanitizes the effect's parameters
/// </summary>
public virtual void Sanitize()
{
}
}