mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 12:50:53 +00:00
fix docstring, add docstring.
This commit is contained in:
parent
41d7de2cb1
commit
9551173590
@ -11,12 +11,14 @@ LEVELTYPE = IntEnum(
|
|||||||
|
|
||||||
|
|
||||||
def on_input_mute_state_changed(data):
|
def on_input_mute_state_changed(data):
|
||||||
"""The current program scene has changed."""
|
"""An input's mute state has changed."""
|
||||||
if data.input_name == DEVICE:
|
if data.input_name == DEVICE:
|
||||||
print(f"{DEVICE} mute toggled")
|
print(f"{DEVICE} mute toggled")
|
||||||
|
|
||||||
|
|
||||||
def on_input_volume_meters(data):
|
def on_input_volume_meters(data):
|
||||||
|
"""volume level update every 50 milliseconds"""
|
||||||
|
|
||||||
def fget(x):
|
def fget(x):
|
||||||
return round(20 * log(x, 10), 1) if x > 0 else -200.0
|
return round(20 * log(x, 10), 1) if x > 0 else -200.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user