Exemplo n.º 1
0
        public virtual int SetupProcessing(ref ProcessSetup setup)
        {
            System.Diagnostics.Trace.WriteLine("IAudioProcessor.SetupProcessing");

            if (this.IsActive)
            {
                return(TResult.E_Unexpected);
            }
            if (!TResult.IsTrue(CanProcessSampleSize(setup.SymbolicSampleSize)))
            {
                return(TResult.S_False);
            }

            this.MaxSamplesPerBlock = setup.MaxSamplesPerBlock;
            this.ProcessMode        = setup.ProcessMode;
            this.SampleRate         = setup.SampleRate;
            this.SampleSize         = setup.SymbolicSampleSize;

            return(TResult.S_True);
        }