protected virtual void OnUnloaded(object sender, OutputStreamEventArgs e) { if (e.Stream is BassOutputStream stream) { this.Remove(stream); } }
protected virtual void OnLoaded(object sender, OutputStreamEventArgs e) { if (!this.Enabled) { return; } if (e.Stream is BassOutputStream stream) { this.Add(stream); } }