RBERRYPI----------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 75 из 100
 От   : The Natural Philosopher             3:633/10          24 окт 25 02:14:58
 К    : All                                                   24 окт 25 06:35:02
 Тема : Re: aplay oddity
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <10dejui$293ep$1@dont-email.me> f10bb2df
@REPLY: <JMqsfwL+8m+oFwKC@ku.gro.lloiff> 21d12af7
@PID: PyGate 1.5
@TID: PyGate/Linux 1.5
@CHRS: CP1252 2
@TZUTC: 0100
@REPLYADDR tnp@invalid.invalid
@REPLYTO 3:633/10 UUCP
On 23/10/2025 19:09, Adrian wrote:
> Pi3 running Bookworm.

> I have a python program that runs continuously, that will when it 
> detects an event call aplay to play a short tune.

> This has been working fine, until today.  I had to reboot the Pi earlier 
> today, and now the python won`t play aplay (the python is running as it 
> logs when the event happens).

> 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. 
> Both command line and python are running under the same user.

> 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").

> Any suggestions on what to hit with the big hammer ?

> TIA

> Adrian
I had issues like this that were in the end permissions, although in 
this case its hard to see how this happened.

Are you running an audio hat? check its well plugged in

-- 
?But what a weak barrier is truth when it stands in the way of an 
hypothesis!?

Mary Wollstonecraft


--- PyGate Linux v1.5
 * Origin: Dragon`s Lair, PyGate NNTP<>Fido Gate (3:633/10)
SEEN-BY: 50/109 103/705 218/700 221/1 6 229/426
240/1120 301/1 113 812
SEEN-BY: 335/364 463/68 633/10 280 414 418 420
422 509 2744 712/848 770/1
SEEN-BY: 5019/40 5020/715 848 1042 4441 12000
5030/49 722 1081 1474 5053/55
SEEN-BY: 5061/133 5075/128
@PATH: 633/10 280 712/848 301/1 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх