2011-10-12, 13:42
hello all,
i am trying to write a simple script for muting. some call it softmuting, that is, program never mutes the volume, however decreases the level to -say- 20% of the current level.
script gets the volume level by. output of the method is in dB.
however; the only way (that i've succeeded to find) to set volume level is using a builtin function as
the problem is, i get the volume level in dB, however i can only set the volume in a linear way with the SetVolume function.
is there any other method to get volume level in linear format or set volume level in dB?
i am a newbie in XBMC scripting...
thanks!
i am trying to write a simple script for muting. some call it softmuting, that is, program never mutes the volume, however decreases the level to -say- 20% of the current level.
script gets the volume level by
Code:
xbmc.getInfoLabel('Player.Volume')
however; the only way (that i've succeeded to find) to set volume level is using a builtin function as
Code:
xbmc.executebuiltin('SetVolume(20)')
the problem is, i get the volume level in dB, however i can only set the volume in a linear way with the SetVolume function.
is there any other method to get volume level in linear format or set volume level in dB?
i am a newbie in XBMC scripting...
thanks!