public override void Connect(IBassStreamComponent previous) { //BassUtils.OK(BassGapless.SetConfig(BassGaplessAttriubute.KeepAlive, true)); Logger.Write(this, LogLevel.Debug, "Creating BASS CROSSFADE stream with rate {0} and {1} channels.", this.Rate, this.Channels); this.ChannelHandle = BassCrossfade.StreamCreate(this.Rate, this.Channels, this.Flags); if (this.ChannelHandle == 0) { BassUtils.Throw(); } }