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

yps

  • Posts: 162
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: 25060
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?

David_AVD

  • Posts: 66
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.

sashakozlovskiy

  • Posts: 39
Re: Cancel an attribute slide?
« Reply #3 on: 17 Mar '23 - 16:09 »
But whether in this situation callback will call,i.e it should be cancel by developer,or callback for sliding will not call?

Ian @ un4seen

  • Administrator
  • Posts: 25060
Re: Cancel an attribute slide?
« Reply #4 on: 17 Mar '23 - 17:11 »
A BASS_SYNC_SLIDE sync wouldn't be called for the original/cancelled slide but it would instead be called at the end of the new slide (even if its time=0).

sashakozlovskiy

  • Posts: 39
Re: Cancel an attribute slide?
« Reply #5 on: 17 Mar '23 - 19:10 »
It's a pity. Can you please add feature to cancel fading and if fading was canceled,callback will not be call.