Revert: sound.py changes

This commit is contained in:
Luc Mcgrady 2025-11-23 08:09:40 +00:00
parent 6a251464b2
commit 5c1d0087de
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -925,8 +925,11 @@ def play_clicked_audio(pycmd: str, card: Card) -> None:
"""eg. if pycmd is 'play:q:0', play the first audio on the question side."""
play, context, str_idx = pycmd.split(":")
idx = int(str_idx)
tags = card.question_av_tags() if context == "q" else card.answer_av_tags()
play_tags([tags[idx]])
if context == "q":
tags = card.question_av_tags()
else:
tags = card.answer_av_tags()
av_player.play_tags([tags[idx]])
play_tags = av_player.play_tags