protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { var component = new BassSkipSilenceStreamComponent(this, e.Stream); component.InitializeComponent(this.Core); e.Components.Add(component); }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { if (!this.Enabled) { return; } e.Output = new BassDirectSoundStreamOutput(this, e.Stream); }
protected virtual void OnCreatingPipeline(CreatingPipelineEventArgs e) { if (this.CreatingPipeline == null) { return; } this.CreatingPipeline(this, e); }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { if (!this.Enabled) { return; } this.OnInitDevice(); e.Output = new BassWasapiStreamOutput(this, e.Stream); }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { if (!this.Enabled) { return; } e.Input = new BassCrossfadeStreamInput(this, e.Stream); e.Input.InitializeComponent(this.Core); }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { if (!this.Enabled) { return; } var output = new BassWasapiStreamOutput(this, e.Stream); output.InitializeComponent(this.Core); e.Output = output; }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { if (BassUtils.GetChannelDsdRaw(e.Stream.ChannelHandle)) { //Cannot apply effects to DSD. return; } var component = new BassReplayGainStreamComponent(this, e.Stream); component.InitializeComponent(this.Core); e.Components.Add(component); }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { if (!this.Enabled) { return; } if (BassUtils.GetChannelDsdRaw(e.Stream.ChannelHandle)) { return; } var component = new BassParametricEqualizerStreamComponent(this, e.Stream); component.InitializeComponent(this.Core); e.Components.Add(component); }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { if (!this.Enabled) { return; } if (!BassResamplerStreamComponent.ShouldCreateResampler(this, e.Stream, e.Query)) { return; } var component = new BassResamplerStreamComponent(this, e.Stream, e.Query); component.InitializeComponent(this.Core); e.Components.Add(component); }
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."); } }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { if (!this.Enabled || this.Output.Rate == e.Stream.Rate) { return; } if (!this.Output.EnforceRate && e.Query.OutputRates.Contains(e.Stream.Rate)) { return; } if (BassUtils.GetChannelDsdRaw(e.Stream.ChannelHandle)) { return; } var component = new BassResamplerStreamComponent(this, e.Stream); component.InitializeComponent(this.Core); e.Components.Add(component); }
protected virtual void OnCreatingPipeline(object sender, CreatingPipelineEventArgs e) { e.Input = new BassGaplessStreamInput(this, e.Stream); }