private void removeChannelFromBassMix(IBassAudioChannel channel) { Debug.Assert(Handle != 0); Debug.Assert(channel.Handle != 0); channel.MixerChannelPaused = BassMix.ChannelHasFlag(channel.Handle, BassFlags.MixerChanPause); BassMix.MixerRemoveChannel(channel.Handle); }
/// <summary> /// Removes a channel from the native BASS mix. /// </summary> private void removeChannelFromBassMix(IBassAudioChannel channel) { // TODO: This fails and throws unobserved exceptions in github CI runs on macOS. // Needs further investigation at some point as something is definitely not right. // Debug.Assert(Handle != 0); // Debug.Assert(channel.Handle != 0); channel.MixerChannelPaused = BassMix.ChannelHasFlag(channel.Handle, BassFlags.MixerChanPause); BassMix.MixerRemoveChannel(channel.Handle); }