feat(motion_app): implement asynchronous similarity calculation

This commit is contained in:
game-loader
2025-06-22 15:17:07 +08:00
parent 53979d9501
commit 1d94e77557
3 changed files with 128 additions and 44 deletions

View File

@@ -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