We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b44b6 commit b90c486Copy full SHA for b90c486
lang/en/typeshed/stdlib/microbit/audio.pyi
@@ -28,6 +28,14 @@ def is_playing() -> bool:
28
:return: ``True`` if audio is playing, otherwise ``False``."""
29
...
30
31
+def sound_level() -> int:
32
+ """Returns the average intensity of the sound played.
33
+
34
+ Example: ``audio.sound_level()``
35
36
+ :return: A number between 0 and 254, being the average intensity of the sound played from the most recent chunk of data."""
37
+ ...
38
39
def stop() -> None:
40
"""Stop all audio playback.
41
0 commit comments