Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with playing sounds
#6
(May-25-2023, 06:56 PM)Axel_Erfurt Wrote: Did you test it in a terminal?

Yes I did. Works fine. It also works fine in the cron job for a while. Then something hangs and it stops working. It is the same effect as with all the other audio libraries I tried for Python using a Python script in the cron job. Same effect. Works for a while, then something hangs and the whole audio system locks up.

But in a terminal it works fine. Also if I loop the Python script to call the audio playback routine, then wait 1 min, then call it again, that works fine. Also works fine if you run it in the background. The problem only seems to appear when it is run as a cron job. Also, only audio functions seem to have this problem. I have a serial output to the USB serial port and this works fine also.
Reply


Messages In This Thread
Problem with playing sounds - by jderickson - May-24-2023, 08:24 PM
RE: Problem with playing sounds - by Axel_Erfurt - May-24-2023, 08:35 PM
RE: Problem with playing sounds - by jderickson - May-24-2023, 09:53 PM
RE: Problem with playing sounds - by jderickson - May-25-2023, 06:19 PM
RE: Problem with playing sounds - by Axel_Erfurt - May-25-2023, 06:56 PM
RE: Problem with playing sounds - by jderickson - May-25-2023, 09:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with code / audio is playing randomly, not matching csv requirements Daniel_kcr 2 1,540 Sep-07-2023, 05:09 PM
Last Post: deanhystad
  Detecting Windows System Sounds? crash2720 1 4,765 Jan-23-2018, 07:08 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020