An evaluator for an expression that operates on a fixed buffer size.
Exemplo n.º 1
0
        public EvaluatorStream(int BufferSize, Evaluator Evaluator, SoundOptions Options, bool Exporting)
        {
            this._Exporting = Exporting;
            this._Options = Options;
            this._Evaluator = Evaluator.GetBuffered(BufferSize);
            this._Offset = BufferSize;
            this._Parameter = Options.Offset;

            // Calculate shift and sample size
            int res = Options.Resolution;
            int sampsize = (res + 7) / 8;
            int shift = sampsize * 8 - res;
            this._SampleSize = sampsize;
            this._Shift = shift;

            this._Advance();
        }
Exemplo n.º 2
0
 public RightShiftConstantEvaluator(Evaluator Source, int Amount)
     : base(Source)
 {
     this.Amount = Amount;
 }
Exemplo n.º 3
0
 public NegateEvaluator(Evaluator Source)
     : base(Source)
 {
 }
Exemplo n.º 4
0
 public MultiplyEvaluator(Evaluator Left, BufferedEvaluator Right)
     : base(Left, Right)
 {
 }
Exemplo n.º 5
0
 public MultiplyConstantEvaluator(Evaluator Source, Value Amount)
     : base(Source)
 {
     this.Amount = Amount;
 }
Exemplo n.º 6
0
 public TriangleEvaluator(Evaluator Source, double Period, double Scale)
     : base(Source, Period, Scale)
 {
 }
Exemplo n.º 7
0
 public UnaryEvaluator(Evaluator Source)
 {
     this.Source = Source;
 }
Exemplo n.º 8
0
 public SequencerEvaluator(BufferedEvaluator[] Items, Evaluator Parameter)
 {
     this.Items = Items;
     this.Parameter = Parameter;
 }
Exemplo n.º 9
0
 public DivideConstantEvaluator(Evaluator Source, Value Amount)
     : base(Source)
 {
     this.Amount = Amount;
 }
Exemplo n.º 10
0
 public ComplementEvaluator(Evaluator Source)
     : base(Source)
 {
 }
Exemplo n.º 11
0
 public BufferedEvaluator(int BufferSize, Evaluator Source)
 {
     this.Buffer = new Value[BufferSize];
     this.Source = Source;
 }
Exemplo n.º 12
0
 public BinaryEvaluator(Evaluator Left, BufferedEvaluator Right)
 {
     this.Left = Left;
     this.Right = Right;
 }
Exemplo n.º 13
0
 public SineEvaluator(Evaluator Source, double Period, double Scale)
     : base(Source, Period, Scale)
 {
 }
Exemplo n.º 14
0
 public GeneratorEvaluator(Evaluator Source, double Period, double Scale)
     : base(Source)
 {
     this.Period = Period;
     this.Scale = Scale;
 }
Exemplo n.º 15
0
 public RightShiftEvaluator(Evaluator Left, BufferedEvaluator Right)
     : base(Left, Right)
 {
 }
Exemplo n.º 16
0
 public SequencerConstantEvaluator(Value[] Items, Evaluator Parameter)
 {
     this.Items = Items;
     this.Parameter = Parameter;
 }
Exemplo n.º 17
0
 public DivideEvaluator(Evaluator Left, BufferedEvaluator Right)
     : base(Left, Right)
 {
 }
Exemplo n.º 18
0
 public SubtractEvaluator(Evaluator Left, BufferedEvaluator Right)
     : base(Left, Right)
 {
 }
Exemplo n.º 19
0
 public ModulusConstantEvaluator(Evaluator Source, Value Amount)
     : base(Source)
 {
     this.Amount = Amount;
 }
Exemplo n.º 20
0
 public XorEvaluator(Evaluator Left, BufferedEvaluator Right)
     : base(Left, Right)
 {
 }
Exemplo n.º 21
0
 public ModulusEvaluator(Evaluator Left, BufferedEvaluator Right)
     : base(Left, Right)
 {
 }