Tuesday, September 21, 2021

#1 2021-07-28 02:20:22 am

DJUNQUERA
Member
Registered: 2011-04-22
Posts: 31

VLC Volume Help

vol(256)
--R1: volN = 256
--R2: volN = 100 %
--R3: volN2 = 256
--R4: volN2 = 100 %

vol(320)
--R1: volN = 320
--R2: volN = 125 %
--R3: volN2 = 320
--R4: volN2 = 125 %

vol(400)
--R1: volN = 400
--R2: volN = 156 %
--R3: volN2 = 320 ➡︎  (???)
--R4: volN2 = 125 % ➡︎  (???)


on vol(n)
    tell application "VLC"
        set audio volume to n
        set volN to (get audio volume)
        say "volN =" & n       --R1: volN = ...
        say "VolN = " & (n * 100) div 256 & "%"     -- R2: volN = ... %
        set volN2 to (get audio volume)
        say "volN2 = " & volN2         -- R3: volN2 = ...
        say "volN2 = " & (volN2 * 100) div 256 & "%"        --R4: volN2 = ... %
    end tell
end vol


Dictionary VLC:
audio volume (integer) : The volume of the current playlist item from 0 to 512, where 256 is 100%.


Why can't I get a volume value higher than 320 (125%) in VLC?

Thanks so much for any help.

Last edited by DJUNQUERA (2021-07-28 05:02:51 am)

Offline

 

#2 2021-07-28 05:58:32 am

Mockman
Member
From:: Toronto
Registered: 2020-05-27
Posts: 105

Re: VLC Volume Help

I think those numbers are obsolete. Some years ago, VLC revamped their volume system (which was not very sensible).

Offline

 

#3 2021-07-28 10:08:33 am

DJUNQUERA
Member
Registered: 2011-04-22
Posts: 31

Re: VLC Volume Help

Thank you very much, Mockman, for your reply.

Greetings. smile

Offline

 

#4 2021-07-28 11:23:49 am

Mockman
Member
From:: Toronto
Registered: 2020-05-27
Posts: 105

Re: VLC Volume Help

My pleasure.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)