MultiMedia Soft forum

MultiMedia Soft products => Audio playback and audio management components => Topic started by: Ravindra on January 03, 2016, 05:19:39 PM

Title: How to adjust equal volume to all sound files played in playlst
Post by: Ravindra on January 03, 2016, 05:19:39 PM
Hello,

I am trying to play some sound files in playlist.
Unfortunately the sound level of each file is different as they
are from different sources.

Is there any function in AudioDjStudio by which i can get current volume level
and set it to some fixed value (Either increase or decrease) so that i can
here all the sound files at same volume level.

Regards,

Ravindra.


Title: Re: How to adjust equal volume to all sound files played in playlst
Post by: Administrator on January 03, 2016, 09:01:04 PM
Hello,

the NormalizationEnable method should be the way to go: you can invoke this method, with the "bEnable" parameter set to "true", on the player that will load the playlist.

Hope this helps

Kind Regards

Severino Delaurenti
MultiMedia Soft
Title: Re: How to adjust equal volume to all sound files played in playlst
Post by: Ravindra on January 04, 2016, 04:45:38 PM
Hi Severino,

Thanks for solution. I tried to use this function.
It works. But i am confused where should i place the code.
I placed it after i initialize the player as follows during Form Load event.

Code is as follows,
'//
AudioDjStudio1.InitSoundSystem(1, 0, 0, 0, 0, -1)
Dim lErrorCode As AudioDjStudio.enumErrorCodes
lErrorCode = AudioDjStudio1.NormalizationEnable(0, True, 40, 10, 10)
'//

Is it right ? Or it is necessary to put in loop of playlist so that it is applied to each sound file independently.

Also let me know the values of parameters i have chosen are correct ?

Regards,

Ravindra.
Title: Re: How to adjust equal volume to all sound files played in playlst
Post by: Administrator on January 04, 2016, 07:14:50 PM
Hello,

you can place the code anywhere before loading the playlist so, immediately after initializing the component as you did is just perfect: this setting stays alive until you don't specifically disable it by calling again the method with the "bEnable" parameter set to "false".

Setting "10" for the "fBelowLevelPerc" and "fAboveLevelPerc" parameters doesn't make much sense: you probably meant entering 100 for both values?

Kind Regards

Severino Delaurenti
MultiMedia Soft