Код: Выделить всё
easyrid3r@D16:$ aplay click.wav
Playing WAVE 'click.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
easyrid3r@D16:$ sudo aplay click.wav
[color=#FF0000]ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
aplay: main:852: audio open error: No such file or directory[/color]
easyrid3r@D16$ sudo -E aplay click.wav
[color=#FF0000]XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
aplay: main:852: audio open error: No such file or directory[/color]