Author Topic: ChannelSlideAttribute with negative value parameter.  (Read 330 times)

NotThatBen

  • Posts: 3
Hi, everyone!
 When i'm using BASS_ChannelSlideAttribute(handle, BASSAttribute.BASS_ATTRIB_VOL, value, 10) with value < 0 to fade-out and stop channel, result of BassMix.BASS_Mixer_ChannelIsActive(handle) doesn't changes from BASS_ACTIVE_PLAYING to BASS_ACTIVE_PAUSED. It seems like bug.

Ian @ un4seen

  • Administrator
  • Posts: 21372
Re: ChannelSlideAttribute with negative value parameter.
« Reply #1 on: 15 Feb '18 - 18:00 »
BASS_Mixer_ChannelIsActive isn't a standard BASSmix function but rather a convenience provided by the BASS.Net wrapper. I believe it returns BASS_ACTIVE_STOPPED when the channel isn't plugged into a mixer, so that would only happen at the end of the channel if the BASS_STREAM_AUTOFREE flag was used when plugging it into the mixer. You can use BASS_ChannelIsActive instead to check whether the channel has ended.

NotThatBen

  • Posts: 3
Re: ChannelSlideAttribute with negative value parameter.
« Reply #2 on: 15 Feb '18 - 18:23 »
Thank you for clarification.

NotThatBen

  • Posts: 3
Re: ChannelSlideAttribute with negative value parameter.
« Reply #3 on: 16 Feb '18 - 03:28 »
Hm.. Is there a way to get channel playback status in case of decoding channel?

Ian @ un4seen

  • Administrator
  • Posts: 21372
Re: ChannelSlideAttribute with negative value parameter.
« Reply #4 on: 16 Feb '18 - 15:41 »
Decoding channels don't really have a playback state, as they can't be played directly, ie. with BASS_ChannelPlay. BASS_ChannelIsActive will tell you whether a decoding channel has reached the end.

If you want to check the status of a channel being played by a mixer, then you could use BASS_Mixer_ChannelIsActive, and if it says the channel is playing, then also check BASS_ChannelIsActive to see whether it's ended (so not really playing).