Exemplo n.º 1
0
        public ProgramConfig(string _name = "")
        {
            this.Name = _name;

            for (int i = 0; i < 4; i++)
            {

                filters[i] = new FilterConfig[9];
                crosspoints[i] = new GainConfig[4];
                gains[i] = new GainConfig[4];
                inputs[i] = new InputConfig(i);
                outputs[i] = new OutputConfig(i);

                compressors[i] = new CompressorConfig[2];

                compressors[i][0] = new CompressorConfig(CompressorType.Compressor);
                compressors[i][1] = new CompressorConfig(CompressorType.Limiter);

                delays[i] = new DelayConfig();

                for (int j = 0; j < 4; j++)
                {
                    gains[i][j] = new GainConfig();
                    crosspoints[i][j] = new GainConfig();

                    if (i == j)
                    {
                        crosspoints[i][j].Gain = 0;
                    }
                    else
                    {
                        crosspoints[i][j].Muted = true;
                    }
                }
            }

            for (int j = 4; j < 6; j++)
            {
                crosspoints[j] = new GainConfig[4];

                for (int k = 0; k < 4; k++)
                {
                    crosspoints[j][k] = new GainConfig(0, true);
                }
            }

            inputs[0].Name = "Input #1";
            inputs[1].Name = "Input #2";
            inputs[2].Name = "Input #3";
            inputs[3].Name = "Input #4";

            outputs[0].Name = "Output #1";
            outputs[1].Name = "Output #2";
            outputs[2].Name = "Output #3";
            outputs[3].Name = "Output #4";
        }
Exemplo n.º 2
0
 public bool Equals(InputConfig compareInput)
 {
     return (Name == compareInput.Name && Type == compareInput.Type && PhantomPower == compareInput.PhantomPower);
 }