feat(motion_app): implement asynchronous similarity calculation
This commit is contained in:
@@ -91,6 +91,8 @@ class AudioPlayer:
|
||||
"""Restarts the audio from the beginning."""
|
||||
if self.pygame_initialized and self.audio_file:
|
||||
self.stop()
|
||||
# Small delay to ensure proper stopping
|
||||
time.sleep(0.1)
|
||||
return self.play()
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user