mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2026-04-18 05:53:32 +00:00
fix docstring, add docstring.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user