home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.raspberry-pi      Raspberry Pi computers & related hardwar      26,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 25,725 of 26,127   
   Lawrence =?iso-8859-13?q?D=FFOlivei to Adrian   
   Re: aplay oddity   
   24 Oct 25 00:43:43   
   
   From: ldo@nz.invalid   
      
   On Thu, 23 Oct 2025 19:09:02 +0100, Adrian wrote:   
      
   > If I do a cut and paste of the aplay command, it works fine. So the   
   > problem looks as though it is some thing to do with the python call.   
      
   I would try to confirm this by running the Python script (or at least   
   a copy of the part that does the aplay command) from a terminal   
   session. In other words, try to minimize all the differences between   
   the situation where you can successfully invoke the command, and the   
   one where you can’t.   
      
   > Both command line and python are running under the same user.   
      
   I suspect there is some issue with setup of environment variables   
   (e.g. $HOME) when running the script in the background versus   
   interactively.   
      
   > What I'm seeing logged by the python code is the following error :   
   >   
   > ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave   
   > aplay: main:831 audio open error: Unknown error 524   
   >   
   > I've tried rebooting again, and an Internet search doesn't come up   
   > with anything for my particular problem (they all seem to be   
   > "nothing working").   
      
   I did a search for “alsa Unknown error 524” and found this   
      
   where the error was fixed by putting something into the systemwide   
   ALSA config.   
      
   This would be consistent with my suspicion that the per-user setup   
   for your background versus interactive cases is not exactly the same.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca