Skip to content

[Bug] GetVolume with useDecibel returns 0 for both highest and lowest value #528

@BarRaider

Description

@BarRaider
Issue type

Bug report

Description

When calling GetVolume with the useDecibel option, it returns 0 (correctly) when the OBS slider is at the top, at 0db. But it also returns 0 (incorrectly) when the slider is all the way at the bottom and reaches "inf" (i.e. after -99db).
Would recommend having inf = -100 just for the sake of consistency when increasing/decreasing the volume. To elaborate, for every value other than this one, doing a +10 or a -10 will correctly increase the decibel accordingly. As such, would recommend to have inf equal -100 for sake of consistency.

Steps to reproduce and other useful info

Move Audio Slider in OBS to bottom and call GetVolume on that source.

Technical information
  • Operating System : Windows 10 64-bit
  • OBS Studio version : 25.0.8 64-bit
  • OBS Websocket version : 4.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions