How to adjust equal volume to all sound files played in playlst

Started by Ravindra, January 03, 2016, 05:19:39 PM

Previous topic - Next topic

Ravindra

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.



Administrator

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

Ravindra

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.

Administrator

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