Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with sndiod
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
kojicomics
n00b
n00b


Joined: 18 May 2017
Posts: 1

PostPosted: Thu May 18, 2017 3:19 pm    Post subject: Problem with sndiod Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum