Skip to content
Snippets Groups Projects
Commit 1cd5df68 authored by Adrien Lescourt's avatar Adrien Lescourt
Browse files

Comment

parent 06e1235a
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ class ClassicMemoryGame(threading.Thread): ...@@ -46,7 +46,7 @@ class ClassicMemoryGame(threading.Thread):
while self.running: while self.running:
if self.sounds_id_to_play_buffer: if self.sounds_id_to_play_buffer:
sound = self.sounds[self.sounds_id_to_play_buffer[0]] sound = self.sounds[self.sounds_id_to_play_buffer[0]]
os.system(f"play {sound}") os.system(f"play {sound}") # Use sox to play sound
self.sounds_id_to_play_buffer.clear() self.sounds_id_to_play_buffer.clear()
time.sleep(0.1) time.sleep(0.1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment