kojicomics n00b
Joined: 18 May 2017 Posts: 1
|
Posted: Thu May 18, 2017 3:19 pm Post subject: Problem with sndiod |
|
|
Hi,
I'm trying to test the OpenBSD's sndio in Gentoo, but I cannot get it working.
I've tried to install it manually, following these instructions: http://www.sndio.org/install.html and also tried to install it through this Overlay: https://gpo.zugaina.org/media-sound/sndio but in both cases it doesn't work.
If I run sndiod with the default settings and max level of verbosity, it fails with the following output when i try to open a .wav file with aucat:
Code: |
# sndiod -ddd
snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
listen(/tmp/aucat/aucat0|ini): created
sock(sock|ini): created
couldn't open play stream: Device or resource busy
couldn't open play stream: Device or resource busy
sock,rmsg,widl: AUTH message
sock,rmsg,widl: HELLO message
sock,rmsg,widl: hello from <aucat>, mode = 1, ver 7
sock,rmsg,widl: using snd0 pst=cfg.default, mode = 1
aucat0: overwritten slot 0
snd0 pst=cfg: device requested
warning, device opened in rec-only mode
sio(rsnd/0|ini): created
snd0 pst=ini: 48000Hz, s16le, rec 0:1, 8 blocks of 960 frames
aucat0 vol=127,pst=ini,mmc=off: requested mode not supported
sock,rmsg,widl: closing
sock(sock|zom): destroyed
listen(/tmp/aucat/aucat0|zom): destroyed
snd0 pst=ini: draining
|
It seems that sndiod cannot handle the device "Device or resource busy", and it fails too saying that the requested mode is not supported.
So I setted the mode to play-only, and tried to play the file again:
Code: |
# sndiod -ddd -m play
snd0 pst=cfg.default: play=0:1 vol=23170 dup
listen(/tmp/aucat/aucat0|ini): created
sock(sock|ini): created
couldn't open play stream: Device or resource busy
sock,rmsg,widl: AUTH message
sock,rmsg,widl: HELLO message
sock,rmsg,widl: hello from <aucat>, mode = 1, ver 7
sock,rmsg,widl: using snd0 pst=cfg.default, mode = 1
aucat0: overwritten slot 0
snd0 pst=cfg: device requested
snd0 pst=cfg: rsnd/0: failed to open audio device
sock,rmsg,widl: closing
sock(sock|zom): destroyed
listen(/tmp/aucat/aucat0|zom): destroyed
snd0 pst=cfg: draining
nothing to do...
snd0 pst=cfg: deleting
|
It still says "Device or Resource busy"
I'm using ALSA, but if i stop the alsasound daemon it keeps failing.
These are my audio devices:
Code: |
#aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
|
Thank you |
|