public BassStreamPipeline(IBassStreamInput input, IEnumerable <IBassStreamComponent> components, IBassStreamOutput output)
 {
     this.Input      = input;
     this.Components = components;
     this.Output     = output;
     this.All.ForEach(component => component.Error += this.OnComponentError);
 }
Exemple #2
0
        protected virtual void CreatePipeline(BassOutputStream stream, out IBassStreamInput input, out IEnumerable <IBassStreamComponent> components, out IBassStreamOutput output)
        {
            var e = new CreatingPipelineEventArgs(this.QueryPipeline(), stream);

            this.OnCreatingPipeline(e);
            input      = e.Input;
            components = e.Components;
            output     = e.Output;
            if (input == null)
            {
                throw new NotImplementedException("Failed to locate a suitable pipeline input.");
            }
            if (output == null)
            {
                throw new NotImplementedException("Failed to locate a suitable pipeline output.");
            }
        }
 public BassStreamPipeline(IBassStreamInput input, IEnumerable <IBassStreamComponent> components, IBassStreamOutput output)
 {
     this.Input      = input;
     this.Components = components;
     this.Output     = output;
 }