On 2021-10-18, Alexandre Ratchov <a...@caoua.org> wrote: > On Mon, Oct 18, 2021 at 03:04:20PM -0400, Mario St-Gelais wrote: >> Hum, I had subject problem in the past following an upgrade, It happened >> again, yet, I cannot remember what the heck I used to do to solve it. >> >> I vaguely remember it was a stupid thing. Any hint please? >> >> I can do aucat -i file.wav no problem. >> Changed ownership of audio0 to my username >> > > audio and MIDI-related files in /dev are supposed to be owned by root, > by default only sndiod(8) uses them directly. > > Most probably _mpd user and you are trying to connect to sndiod > simultaneously. > > If so, you can authorize _mpd to connect to your sndio session by > copying your ~/.sndio/cookie to _mpd home directory. There's a short > explanation in the "Authentication" section of sndio(7). > >
$ doas pkg_add mpd quirks-4.54 signed on 2021-10-18T15:54:45Z mpd-0.22.11:libaudiofile-0.3.6p6: ok mpd-0.22.11: ok The following new rcscripts were installed: /etc/rc.d/mpd See rcctl(8) for details. New and changed readme(s): /usr/local/share/doc/pkg-readmes/mpd $ cat /usr/local/share/doc/pkg-readmes/mpd $OpenBSD: README,v 1.1 2020/04/28 17:16:21 jca Exp $ +------------------------------------------------------------------------------- | Running mpd on OpenBSD +------------------------------------------------------------------------------- sndiod(8) concurrent access by mpd(1) and other users ===================================================== sndiod(8) normally only allows access to audio by a single system user at a time. This is done by generating a random authentication token and storing it in $HOME/.sndio/cookie when a user first accesses audio, providing a limited capability to share with other users by copying the token to their home directory. See AUTHENTICATION in sndio(7) for more details. If you want to share sndiod(8) access with mpd(1) running as the default _mpd user, you may copy .sndio/cookie from your user's home directory to /var/spool/mpd/.sndio/cookie. [...] -- Please keep replies on the mailing list.