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 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); }