Author Topic: Cancel an attribute slide?  (Read 909 times)

yps

  • Posts: 160
Cancel an attribute slide?
« on: 12 Oct '17 - 07:35 »
Hi,

how can I cancel the slide of an attribute (volume in particular) once it was started with BASS_ChannelSlideAttribute?

Tried several things (call BASS_ChannelSlideAttribute again with time=0, call BASS_ChannelSetVolume) but haven't managed.


Thanks
Torben

Ian @ un4seen

  • Administrator
  • Posts: 22253
Re: Cancel an attribute slide?
« Reply #1 on: 12 Oct '17 - 16:38 »
Calling BASS_ChannelSlideAttribute again with the same attribute and time=0 should cancel an existing slide for that attribute. I checked just now and it seemed to be working fine, so strange that it isn't there. Is the 2nd BASS_ChannelSlideAttribute call reporting success, ie. returning TRUE?

00AVD

  • Posts: 19
Re: Cancel an attribute slide?
« Reply #2 on: 30 Jul '19 - 04:07 »
I've been trying to cancel attribute slides as well and found that the call with the zero time simply jumps the attribute to the end value.

Calling BASS_ChannelGetAttribute first and using the value from that for the BASS_ChannelSlideAttribute is a workaround for me.