Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-matt-hillsdon committed Aug 21, 2024
1 parent 263b689 commit 3826bce
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lang/en/typeshed/stdlib/microbit/audio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class AudioRecording:
:return: A copy of the ``AudioRecording``.
"""

def track(self, start_ms: int = 0, end_ms: int = -1) -> None:
def track(self, start_ms: int = 0, end_ms: int = -1) -> AudioTrack:
"""Create an ``AudioTrack`` instance from a portion of the data in this ``AudioRecording`` instance.
Example: ``first_second = my_recording.track(0, 1000)``
Expand All @@ -196,15 +196,6 @@ class AudioRecording:
:param end_ms: (default=-1) The end of the track in milliseconds. If the default value of ``-1`` is provided it will end the track at the end of the AudioRecording.
:return: An ``AudioTrack`` backed by the sample data between ``start_ms`` and ``end_ms``.
"""
def __len__(self) -> int: ...
def __setitem__(self, key: int, value: int) -> None: ...
def __getitem__(self, key: int) -> int: ...
def __add__(self, v: AudioRecording) -> AudioRecording: ...
def __iadd__(self, v: AudioRecording) -> AudioRecording: ...
def __sub__(self, v: AudioRecording) -> AudioRecording: ...
def __isub__(self, v: AudioRecording) -> AudioRecording: ...
def __mul__(self, v: float) -> AudioRecording: ...
def __imul__(self, v: float) -> AudioRecording: ...

class AudioTrack:
""" The ``AudioTrack`` object points to the data provided by the input buffer,
Expand Down

0 comments on commit 3826bce

Please sign in to comment.