MultiMedia Soft forum

MultiMedia Soft products => Audio playback and audio management components => Topic started by: PatrickVossen on November 06, 2019, 03:00:42 PM

Title: Stop fading of StreamVolumeSmoothingSet-function
Post by: PatrickVossen 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
audioDjStudio1.StreamVolumeSmoothingSet(e.nPlayerIndex, False, 5000, enumVolumeCurves.VOLUME_CURVE_LINEAR, -1)
And calling
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
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

Title: Re: Stop fading of StreamVolumeSmoothingSet-function
Post by: Administrator 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