Skip to content

Commit 7057837

Browse files
Update audio.sound_level doc
1 parent 936b172 commit 7057837

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lang/en/typeshed/stdlib/microbit/audio.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ def is_playing() -> bool:
2929
...
3030

3131
def sound_level() -> int:
32-
"""Returns the average intensity of the sound played.
32+
"""Returns the sound pressure level produced by audio currently being played.
3333
3434
Example: ``audio.sound_level()``
3535
36-
:return: A number between 0 and 254, being the average intensity of the sound played from the most recent chunk of data."""
36+
:return: A representation of the output sound pressure level in the range 0 to 255."""
3737
...
3838

3939
def stop() -> None:

0 commit comments

Comments
 (0)