mirror of
https://github.com/rkk-2s/bad-apple.git
synced 2026-10-14 21:38:53 +00:00
[GH-ISSUE #2] block=False is not supported in Linux #3
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rkk-2s/bad-apple#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @0n1cOn3 on GitHub (Apr 15, 2021).
Original GitHub issue: https://github.com/rkk-2s/bad-apple/issues/2
block=False is not supported in Linux, you may need to add an thread to execute playsound():
import threading
...
threading.Thread(target=playsound, args=("tng_bad-apple.mp3",)).start()
@rkk-2s commented on GitHub (Apr 15, 2021):
Hey there, wasn't aware of the issue thanks. Though when using threading I ran into synchronization issues, so not really too sure on how to rectify that. Will look into it though.
@timelessnesses commented on GitHub (Apr 17, 2021):
@CalvinLoke you should use the ffmpeg though or just let it record and sent it as video file
@0n1cOn3 commented on GitHub (Apr 17, 2021):
Sounds like a good idea but the project is to show everything in ASCII inside an terminal 😄 So, when you run a cli environment, it could be tricky to show mpv or something else when no GUI has been installed.
@rkk-2s commented on GitHub (Apr 20, 2021):
Alright, fixed the issue with v3 by replacing the playsound library with pygame. Tested it, and it was able to run on Linux. Thanks for bringing the issue up! @0n1cOn3
@0n1cOn3 commented on GitHub (Apr 20, 2021):
Your welcome.