Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Apr 2001 13:16:00 +0100
From:      j mckitrick <jcm@FreeBSD-uk.eu.org>
To:        freebsd-multimedia@freebsd.org, freebsd-stable@freebsd.org
Subject:   problem playing .wav files
Message-ID:  <20010418131600.A8879@dogma.freebsd-uk.eu.org>

next in thread | raw e-mail | index | archive | help


Here is a problem I have had with pcm.
I have a Toshiba 4010CDT with the Yamaha OPL3-SAx sound system.
I can play .au files fine, and other sound seems to work fine.
When I use XMMS, .wav files play, but slowly, and they are clipped at the
end.  This feature (.wav files) has not worked for me since 4.0.

here is some info. First, the relevant lines from the kernel config.

# sound
#device pcm
device pcm0 at isa? port ? irq 5 drq 1 flags 0x15 # try this next
#device pcm at isa? port ? irq 5 drq 1 flags 0x13
#device pcm0 at isa? port ? irq 5 drq 1 flags 0x0 # try this next

local:~> !cat
cat /dev/sndstat
FreeBSD Audio Driver (newpcm) Mar 31 2001 18:40:18
Installed devices:
pcm0: <OPL3-SAx (YMF719)> at io 0x530 irq 5 drq 1:5 (1p/1r channels duplex)

local:~> dmesg|tail
pcm0: <OPL3-SAx (YMF719)> at port 0x530-0x537,0x538-0x539 irq 5 drq 1 flags
0xc1
15 on isa0
IP packet filtering initialized, divert disabled, rule-based forwarding
disabled
, default to accept, logging limited to 10 packets/entry by default
pccard: card inserted, slot 1
ata1-slave: ata_command: timeout waiting for intr
ata1-slave: identify failed
ad0: 4126MB <IBM-DKLA-24320> [8944/15/63] at ata0-master UDMA33
acd0: CDROM <CD-220EA> at ata1-master using WDMA2
Mounting root from ufs:/dev/ad0s1a
sio1 at port 0x2f8-0x2ff irq 3 slot 1 on pccard1
sio1: type 16550A
local:~>

truss output of 'play'
open("/etc/ppp/smoking.wav",0,027757776254)      = 3 (0x3)
read(0x3,0x804bd00,0x2c)                         = 44 (0x2c)
open("/dev/dsp",1,027757776240)                  = 4 (0x4)
ioctl(4,SNDCTL_DSP_GETBLKSIZE,0xbfbffbd8)        = 0 (0x0)
ioctl(4,SNDCTL_DSP_SETFMT,0x804bd20)             ERR#22 'Invalid argument'
play: write(2,0xbfbff434,6)                              = 6 (0x6)
/dev/dspwrite(2,0xbfbff464,8)                            = 8 (0x8)
: write(2,0xbfbff424,2)                          = 2 (0x2)
Invalid argument
write(2,0xbfbff424,17)                           = 17 (0x11)
close(4)                                         = 0 (0x0)
sigprocmask(0x1,0x2805c780,0xbfbffbe8)           = 0 (0x0)
sigprocmask(0x3,0x2805c790,0x0)                  = 0 (0x0)
exit(0x0)                                       process exit, rval = 0
local:~>

Is there any other info I could provide that might help solve this problem?

jm
-- 
-----------------------------------------------------------
Jonathon McKitrick -- jcm@freebsd-uk.eu.org           
Bill's Law - "The speed of Windows halves every 18 months."
-----------------------------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010418131600.A8879>