May-25-2023, 09:52 PM
(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.