Re: sndio? aucat -i s.wav: "default: couldn't open audio device"
:( no, no sound yet, same message as before. # sndiod -ddd -r 44100 -f rsnd/0 -m play snd0 pst=cfg.default: play=0:1 vol=23170 dup helper(helper|ini): created worker(worker|ini): created listen(/tmp/sndio/sock0|ini): created sock(sock|ini): created sock,rmsg,widl: AUTH message sock,rmsg,widl: HELLO message sock,rmsg,widl: hello from , mode = 1, ver 7 aucat0: overwritten slot 0 snd0 pst=cfg: device requested worker: send: cmd = 0, num = 0, mode = 1, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 snd0 pst=cfg: rsnd/0: failed to open audio device sock,rmsg,widl: closing sock(sock|zom): destroyed sock(sock|zom): processed in 240002us helper: recv: cmd = 0, num = 0, mode = 1, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 247958us # SNDIO_DEBUG=5 aucat -i sound.wav _aucat_open: host= unit=0 devnum=0 opt=default /tmp/sndio-0/sock0: No such file or directory /tmp/sndio/sock0: connected _aucat_rmsg: eof aucat_init: mode refused /dev/audio0: Invalid argument default: couldn't open audio device On Wed, May 15, 2019 at 2:01 AM Alexandre Ratchov wrote: > On Tue, May 14, 2019 at 06:57:48PM -0500, Juan Zuluaga wrote: > > Thank you Alexandre! > > > > I did > > # sndiod -ddd -r 44100 -f rsnd/1 -m play > > sorry, there's a typo in the command I sent you, the correct device > number is "0", as the device appears as "audio0" in dmesg. The correct > command is: > > sndiod -ddd -r 44100 -f rsnd/0 -m play > >
Re: sndio? aucat -i s.wav: "default: couldn't open audio device"
On Tue, May 14, 2019 at 06:57:48PM -0500, Juan Zuluaga wrote: > Thank you Alexandre! > > I did > # sndiod -ddd -r 44100 -f rsnd/1 -m play sorry, there's a typo in the command I sent you, the correct device number is "0", as the device appears as "audio0" in dmesg. The correct command is: sndiod -ddd -r 44100 -f rsnd/0 -m play
Re: sndio? aucat -i s.wav: "default: couldn't open audio device"
Thank you Alexandre! I did # sndiod -ddd -r 44100 -f rsnd/1 -m play snd0 pst=cfg.default: play=0:1 vol=23170 dup and went to the other window, did petal# SNDIO_DEBUG=4 aucat -i sound.wav _aucat_open: host= unit=0 devnum=0 opt=default /tmp/sndio-0/sock0: No such file or directory /tmp/sndio/sock0: connected _aucat_rmsg: eof aucat_init: mode refused /dev/audio0: Invalid argument default: couldn't open audio device The first window wrote helper(helper|ini): created worker(worker|ini): created listen(/tmp/sndio/sock0|ini): created sock(sock|ini): created sock,rmsg,widl: AUTH message sock,rmsg,widl: HELLO message sock,rmsg,widl: hello from , mode = 1, ver 7 aucat0: overwritten slot 0 snd0 pst=cfg: device requested worker: send: cmd = 0, num = 0, mode = 1, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 snd0 pst=cfg: rsnd/1: failed to open audio device sock,rmsg,widl: closing sock(sock|zom): destroyed helper: recv: cmd = 0, num = 0, mode = 1, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 8874us On Tue, May 14, 2019 at 1:46 AM Alexandre Ratchov wrote: > > On Mon, May 13, 2019 at 03:53:51PM -0500, Juan Zuluaga wrote: > > Hello all, > > > > I have audio trouble: no sound whatsoever, and error messages. > > > > In a first terminal window, as root, I typed > > # sndiod -ddd > > > > The ISA bus (actually the PC-XT DMA controller which didn't evolve > since 1980) is not fast enough for full-duplex. If you don't plan to > record, could you try: > > sndiod -dd -r 44100 -f rsnd/1 -m play > > and see if you manage to play something?
Re: sndio? aucat -i s.wav: "default: couldn't open audio device"
On Mon, May 13, 2019 at 03:53:51PM -0500, Juan Zuluaga wrote: > Hello all, > > I have audio trouble: no sound whatsoever, and error messages. > > In a first terminal window, as root, I typed > # sndiod -ddd > The ISA bus (actually the PC-XT DMA controller which didn't evolve since 1980) is not fast enough for full-duplex. If you don't plan to record, could you try: sndiod -dd -r 44100 -f rsnd/1 -m play and see if you manage to play something?
Re: sndio? aucat -i s.wav: "default: couldn't open audio device"
Thank you Troy! however, it does not even get to "trying pars...": - # AUCAT_DEBUG=4 SIO_DEBUG=4 aucat -i ./sound.wav default: couldn't open audio device # AUCAT_DEBUG=4 SNDIO_DEBUG=4 aucat -i ./sound.wav _aucat_open: host= unit=0 devnum=0 opt=default /tmp/sndio-0/sock0: No such file or directory /tmp/sndio/sock0: connected _aucat_rmsg: eof aucat_init: mode refused /dev/audio0: Invalid argument default: couldn't open audio device --- sndiod is showing this in first window (output for one command after another): - sock(sock|ini): created listen(/tmp/sndio/sock0|ini): processed in 12288us sock,rmsg,widl: AUTH message helper: recv: cmd = 0, num = 0, mode = 3, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 117724us helper: recv: cmd = 0, num = 0, mode = 1, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 236610us sock,rmsg,widl: HELLO message sock,rmsg,widl: hello from , mode = 1, ver 7 aucat0: reused snd0 pst=cfg: device requested worker: send: cmd = 0, num = 0, mode = 3, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 worker: send: cmd = 0, num = 0, mode = 1, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 worker: send: cmd = 0, num = 0, mode = 2, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 snd0 pst=cfg: rsnd/0: failed to open audio device sock,rmsg,widl: closing sock(sock|zom): destroyed sock(sock|zom): processed in 480270us helper: recv: cmd = 0, num = 0, mode = 2, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 121869us sock(sock|ini): created sock,rmsg,widl: AUTH message helper: recv: cmd = 0, num = 0, mode = 3, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 123518us helper: recv: cmd = 0, num = 0, mode = 1, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 235601us sock,rmsg,widl: HELLO message sock,rmsg,widl: hello from , mode = 1, ver 7 aucat0: reused snd0 pst=cfg: device requested worker: send: cmd = 0, num = 0, mode = 3, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 worker: send: cmd = 0, num = 0, mode = 1, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 worker: send: cmd = 0, num = 0, mode = 2, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 snd0 pst=cfg: rsnd/0: failed to open audio device sock,rmsg,widl: closing sock(sock|zom): destroyed sock(sock|zom): processed in 482938us helper: recv: cmd = 0, num = 0, mode = 2, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 131729us On Mon, May 13, 2019 at 5:07 PM Troy Martin wrote: > On Monday, May 13, 2019 at 1:54 PM, Juan Zuluaga wrote: > > sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.02 > > midi0 at sb0: > > audio0 at sb0 > > opl at sb0 not configured > > It appears you have an ISA Sound Blaster 16 of some sort. IIRC early > SB cards were unable to handle 48 kHz sample rates and would quietly > choke on them. Try running aucat as: > > # AUCAT_DEBUG=4 SIO_DEBUG=4 aucat -i ./sound.wav > > ...and see if it chokes on after "trying pars = 48000/16/6". > > -- > Troy > >
Re: sndio? aucat -i s.wav: "default: couldn't open audio device"
On Monday, May 13, 2019 at 1:54 PM, Juan Zuluaga wrote: > sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.02 > midi0 at sb0: > audio0 at sb0 > opl at sb0 not configured It appears you have an ISA Sound Blaster 16 of some sort. IIRC early SB cards were unable to handle 48 kHz sample rates and would quietly choke on them. Try running aucat as: # AUCAT_DEBUG=4 SIO_DEBUG=4 aucat -i ./sound.wav ...and see if it chokes on after "trying pars = 48000/16/6". -- Troy
sndio? aucat -i s.wav: "default: couldn't open audio device"
Hello all, I have audio trouble: no sound whatsoever, and error messages. In a first terminal window, as root, I typed # sndiod -ddd In a second terminal window I typed # file ./sound.wav ./sound.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 11025 Hz # aucat -i ./sound.wav default: couldn't open audio device The first terminal window shows this: petal# sndiod -ddd snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup helper(helper|ini): created worker(worker|ini): created listen(/tmp/sndio/sock0|ini): created sock(sock|ini): created listen(/tmp/sndio/sock0|ini): processed in 6261us sock,rmsg,widl: AUTH message helper: recv: cmd = 0, num = 0, mode = 3, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 123554us helper: recv: cmd = 0, num = 0, mode = 1, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 236812us sock,rmsg,widl: HELLO message sock,rmsg,widl: hello from , mode = 1, ver 7 aucat0: overwritten slot 0 snd0 pst=cfg: device requested worker: send: cmd = 0, num = 0, mode = 3, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 worker: send: cmd = 0, num = 0, mode = 1, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 worker: send: cmd = 0, num = 0, mode = 2, fd = -1 worker: recv: cmd = 3, num = 0, mode = 0, fd = -1 snd0 pst=cfg: rsnd/0: failed to open audio device sock,rmsg,widl: closing sock(sock|zom): destroyed sock(sock|zom): processed in 484951us helper: recv: cmd = 0, num = 0, mode = 2, fd = -1 helper: send: cmd = 3, num = 0, mode = 0, fd = -1 helper(helper|ini): processed in 121169us This is an ancient Thinkpad 380D laptop. Sound was working before OpenBSD. Some time ago I installed OpenBSD 6.0, and the last couple of days I have updated 6.1, 6.2.,... up to 6.5 Permissions: petal# ls -la /dev/sound* lrwxr-xr-x 1 root wheel 6 Jan 14 2018 /dev/sound -> sound0 crw-rw-rw- 1 root wheel 42, 0 Jan 14 2018 /dev/sound0 crw-rw-rw- 1 root wheel 42, 1 Jan 14 2018 /dev/sound1 crw-rw-rw- 1 root wheel 42, 2 Jan 14 2018 /dev/sound2 petal# ls -la /dev/audio* crw-rw-rw- 1 root wheel 42, 0 May 12 17:37 /dev/audio0 crw-rw-rw- 1 root wheel 42, 1 May 12 17:37 /dev/audio1 crw-rw-rw- 1 root wheel 42, 2 May 12 17:37 /dev/audio2 crw-rw-rw- 1 root wheel 42, 192 May 12 17:37 /dev/audioctl0 crw-rw-rw- 1 root wheel 42, 193 May 12 17:37 /dev/audioctl1 crw-rw-rw- 1 root wheel 42, 194 May 12 17:37 /dev/audioctl2 /etc/group says that I (user) am in wheel. While being still being in OpenBSD 6.0 I followed part of the installation instructions from http://www.sndio.org/install.html (yes, for linux) and typed #mkdir /var/run/sndiod #useradd -g audio -s /sbin/nologin -d /var/run/sndiod sndiod Here is dmesg: OpenBSD 6.5 (GENERIC) #1: Wed Apr 24 22:04:27 CEST 2019 r...@syspatch-65-i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC real mem = 83378176 (79MB) avail mem = 66617344 (63MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: date 09/02/99, BIOS32 rev. 0 @ 0xfd860 apm0 at bios0: Power Management spec V1.2 pcibios0 at bios0: rev 2.1 @ 0xfd8a0/0x800 pcibios0: PCI BIOS has 2 Interrupt Routing table entries pcibios0: PCI Exclusive IRQs: 11 pcibios0: PCI Interrupt Router at 000:01:0 ("Intel 82371 ISA and IDE" rev 0x00) pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc/0x8000 cpu0 at mainbus0: (uniprocessor) cpu0: Intel Pentium/MMX ("GenuineIntel" 586-class) 153 MHz, 05-04-04 cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX,MELTDOWN cpu0: F00F bug workaround installed pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82437MX" rev 0x02 pcib0 at pci0 dev 1 function 0 "Intel 82371 ISA and IDE" rev 0x03 vga1 at pci0 dev 3 function 0 "Neomagic Magicgraph 128ZV" rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) pcic3 at pci0 dev 19 function 0 "Cirrus Logic CL-PD6729" rev 0x07 pcic3 controller 0: has sockets A and B pcmcia0 at pcic3 controller 0 socket 0 pcmcia1 at pcic3 controller 0 socket 1 wdc2 at pcmcia1 function 0 "Key Technology Corp., FC1307 " port 0x400/16: irq 3 wd0 at wdc2 channel 0 drive 0: wd0: 1-sector PIO, LBA, 968MB, 1984000 sectors wd1 at wdc2 channel 0 drive 1: wd1: 1-sector PIO, CHS, 68MB, 1024 cyl, 8 head, 17 sec, 139264 sectors wd0(wdc2:0:0): using BIOS timings wd1(wdc2:0:1): using BIOS timings pcic3: interrupting at irq 4 pcic3: irq 4, polling enabled isa0 at pcib0 isadma0 at isa0 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 com0: irq 4 already in use pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 wdc0 at isa0 port 0x1f0/8 irq 14 wd2 at wdc0 channel 0 drive 0: wd2: 16-sector PIO, LBA, 3909MB, 8007552 sectors atapiscsi0 at wdc0 channel 0 drive 1 scsibus1