MultiMedia Soft forum

Please login or register.

Login with username, password and session length
Advanced search  


SMF - Just Installed!

Author Topic: Stop fading of StreamVolumeSmoothingSet-function  (Read 278 times)


  • Newbie
  • *
  • Posts: 25
    • View Profile
Stop fading of StreamVolumeSmoothingSet-function
« on: November 06, 2019, 03:00:42 PM »

Hi Severino,

Is it possible to cancel an fade-out action after setting the StreamVolumeSmoothingSet-function?
I noticed that when setting
Code: [Select]
audioDjStudio1.StreamVolumeSmoothingSet(e.nPlayerIndex, False, 5000, enumVolumeCurves.VOLUME_CURVE_LINEAR, -1)And calling
Code: [Select]
audioDjStudio1.StopSound(Player_A)The player starts to fade out (=OK), but then when I want to stop the song during the fade-out time, I can call
Code: [Select]
audioDjStudio1.StreamVolumeSmoothingSet(e.nPlayerIndex, False, 0, enumVolumeCurves.VOLUME_CURVE_LINEAR, -1)And calling 'StopSound' again, the song directly stops, but when I start the song again, the first Fade action is continuing to Fade-out.

Is there a way to cancel this Fade-out action?

Best regards
Patrick Vossen



  • Administrator
  • Sr. Member
  • *****
  • Posts: 298
    • View Profile
    • MultiMedia Soft
Re: Stop fading of StreamVolumeSmoothingSet-function
« Reply #1 on: November 07, 2019, 08:48:36 AM »

Hello Patrick,

unfortunately this fade-out is already the result of a stop so there was no plan to make a stop of a stop available :-)
In this case you may consider using the CloseSound method that should stop everything, fades included.

Hope this help.

Kind Regards

Severino Delaurenti
MultiMedia Soft