• F
    libobs: Add audio control functions · 8dcbd77b
    fryshorts 提交于
    This adds a new library of audio control functions mainly for the use in
    GUIS. For now it includes an implementation of a software fader that can
    be attached to sources in order to easily control the volume.
    The fader can translate between fader-position, volume in dB and
    multiplier with a configurable mapping function.
    Currently only a cubic mapping (mul = fader_pos ^ 3) is included, but
    different mappings can easily be added.
    
    Due to libobs saving/restoring the source volume from the multiplier,
    the volume levels for existing source will stay the same, and live
    changing of the mapping will work without changing the source volume.
    8dcbd77b
obs-audio-controls.c 6.3 KB