Couple of things though I'm not an expert on sound and Linux.
- .bashrc is not a good choice:
- If no user logs in it is not run
- .bashrc is processed multiple times - on every login regardless of method, everytime a new terminal window is opened in the desktop, etc. Unless you have taken steps to prevent it (or there is a conflict that prevents a second copy starting) you'll end up with multiple copies of your code running
- If you're redirecting program output with ">" later attempts will overwrite output from earlier ones.
- The Linux sound subsystem is only started at login. This may take longer than it takes to start your code.
- The environment under thonny is not the same as under other methods.
Statistics: Posted by thagrol — Sun May 05, 2024 11:29 am