forked from Wobbl/Wobuzz
Implemented seeking.
This commit is contained in:
parent
dd44f10832
commit
24d589b172
4 changed files with 51 additions and 10 deletions
|
@ -28,4 +28,10 @@ class Track:
|
|||
return audio, sound, len(audio)
|
||||
|
||||
def remaining(self, position: int):
|
||||
return self.audio[-position:]
|
||||
remaining_audio = self.audio[position:]
|
||||
|
||||
wav = remaining_audio.export(format="wav")
|
||||
|
||||
sound = Sound(wav)
|
||||
|
||||
return sound, len(remaining_audio)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue