mpg321 and ogg123 won't to play anything because "No default libao
driver available.". However, "pkg_info -a | grep libao" command will display
"libao-1.1.0 portable audio output library".
aucat and mplayer able to play files.
N.B. On OpenBSD 4.6 I got sound without any problem.
DAC.
root@:0$ pkill -x aucat && cat > /dev/audio < /dev/zero &
[1] 18333
root@:1$ audioctl play.{seek,samples,errors}
play.seek=26400
play.samples=94400
play.errors=0
root@:1$ audioctl play.{seek,samples,errors}
play.seek=26400
play.samples=110800
play.errors=0
root@:1$ audioctl play.{seek,samples,errors}
play.seek=31600
play.samples=166000
play.errors=0
root@:1$ audioctl play.{seek,samples,errors}
play.seek=32600
play.samples=246000
play.errors=0
root@:1$ kill %1
[1]+ Terminated pkill -x aucat && cat > /dev/audio < /dev/zero
AUDIOCTL.
name=SoundBlaster
version=4.16
config=SB_16
encodings=ulinear:8:1:1,mulaw:8:1:1*,alaw:8:1:1*,slinear:8:1:1,slinear_le:16:2:1,ulinear_le:16:2:1,slinear_be:16:2:1*,ulinear_be:16:2:1*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=11760
hiwat=4
lowat=3
output_muted=0
monitor_gain=0
mode=play
play.rate=44100
play.sample_rate=44100
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.gain=248
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=1
play.error=0
play.waiting=0
play.open=1
play.active=0
play.buffer_size=65536
play.block_size=11760
play.errors=0
record.rate=8000
record.sample_rate=8000
record.channels=1
record.precision=8
record.bps=1
record.msb=1
record.encoding=mulaw
record.gain=0
record.balance=32
record.port=0x1
record.avail_ports=0x7
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=400
record.errors=0
DMESG.
OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 350 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR
real mem = 335015936 (319MB)
avail mem = 319483904 (304MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/05/01, BIOS32 rev. 0 @ 0xfb1b0, SMBIOS
rev. 2.1 @ 0xf0800 (29 entries)
bios0: vendor Award Software International, Inc. version "4.51 PG" date 02/05/01
bios0: Giga-Byte Technology CO., LTD i440BX-W977
apm0 at bios0: Power Management spec V1.2 (slowidle)
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb628
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdd60/128 (6 entries)
pcibios0: PCI Exclusive IRQs: 9 10 11
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xc600!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe0000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <FUJITSU MPC3064AT>
wd0: 16-sector PIO, LBA, 6187MB, 12672450 sectors
wd1 at pciide0 channel 0 drive 1: <ST340016A>
wd1: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd2 at pciide0 channel 1 drive 0: <ST3160815A>
wd2: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <Optiarc, DVD RW AD-5200A, 1.04> ATAPI 5/cdrom
removable
wd2(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: polling
iic0 at piixpm0
lm1 at iic0 addr 0x2d: W83781D
spdmem0 at iic0 addr 0x50: 64MB SDRAM non-parity PC100CL2
spdmem1 at iic0 addr 0x51: 256MB SDRAM non-parity PC133CL3
rl0 at pci0 dev 8 function 0 "Realtek 8139" rev 0x10: irq 10, address
00:1f:1f:75:6b:8b
rlphy0 at rl0 phy 0: RTL internal PHY
vga1 at pci0 dev 10 function 0 vendor "NVIDIA", unknown product 0x032a rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83781D
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x203
isapnp0: No current device for tag, card 1
sb1 at isapnp0 "Creative SB AWE64 PnP, CTL0045, , Audio" port
0x220/16,0x330/2,0x388/4 irq 5 drq 1,5: dsp v4.16
midi0 at sb1: <SB MPU-401 UART>
audio0 at sb1
opl at sb1 not configured
joy0 at isapnp0 "Creative SB AWE64 PnP, CTL7002, PNPB02F, Game" port 0x200/8
"Creative SB AWE64 PnP, CTL0022, , WaveTable" at isapnp0 port 0x620/4 not
configured
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
lm1: disabling sensors
root on wd2a (360e9053774b88db.a) swap on wd2b dump on wd2b
--