fix docstring, add docstring.

This commit is contained in:
onyx-and-iris 2022-10-26 12:13:32 +01:00
parent 41d7de2cb1
commit 9551173590

View File

@ -11,12 +11,14 @@ LEVELTYPE = IntEnum(
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:
print(f"{DEVICE} mute toggled")
def on_input_volume_meters(data):
"""volume level update every 50 milliseconds"""
def fget(x):
return round(20 * log(x, 10), 1) if x > 0 else -200.0