Re: Audio play too fast on AC97 onboard

2005-10-11 Thread Marcin Wilk

Thank You all for help!

I have made /etc/mplayer/mplayer.conf file & put there:

srate=48000
framedrop=1
fs=1
af-adv=force=1
vf=pp=lb

For all other software i have put in the /etc/esd.conf file:

auto_spawn=1
spawn_options=-r 48000 -nobeeps -as 2
spawm_wait_ms=100

& i will ocnfigure all other software for using esound.

Thank You all again :)



Re: Audio play too fast on AC97 onboard

2005-10-11 Thread Edd Barrett
On 11/10/05, Stuart Henderson <[EMAIL PROTECTED]> wrote:
> --On 11 October 2005 12:21 +0200, Marcin Wilk wrote:
>
> > Audio play too fast on AC97 onboard
> > Can anyone suggest some solution for me please ?
>
> <http://archives.neohapsis.com/archives/openbsd/2004-01/0764.html>
>

Mplayer is very good at resampling audio.

Here is the config I use to get around the problem:

srate=44100
framedrop=1
fs=1
af-adv=force=1
vf=pp=lb

Im sure I already posted this.

Best Regards

Edd



Re: Audio play too fast on AC97 onboard

2005-10-11 Thread Stuart Henderson

--On 11 October 2005 12:21 +0200, Marcin Wilk wrote:


Audio play too fast on AC97 onboard
Can anyone suggest some solution for me please ?


<http://archives.neohapsis.com/archives/openbsd/2004-01/0764.html>



Audio play too fast on AC97 onboard

2005-10-11 Thread Marcin Wilk

misc@openbsd.org

Audio play too fast on AC97 onboard

Hello
I noticed it with OpenBSD 3.4 & it didn't change up to 3.7.
I didn't report that because i din't use sound so much before 3.7.
Now i'm using OBSD much more so sound start to be important for me:)

First of all, the audio play too fast. I searched on mailing list archives,
& i find that it's nothing new because some audio chips works with 48000Hz.
The solution was to set playing rate to 44100 with "audioctl".
So this is what "# audioctl -a" gives me:

name=VIA VT82C686A
version=
config=auvia
encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16*
properties=full_duplex,mmap,independent
full_duplex=0
fullduplex=0
blocksize=9600
hiwat=6
lowat=1
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=9600
play.samples=26874240
play.eof=0
play.pause=0
play.error=1
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
record.rate=48000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=191
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.errors=0

I try to make "# audioctl play.rate=44100" but the answer was:

audioctl: set failed: Invalid argument

I read that sometimes even witht hat notice it is working. But not thios time.
Play rate is still 48000.

Another intresting thing is that sometimes i get notice on terminal like this:

"auvia0: codec invalid".

Here is my dmesg:

OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Duron(tm) Processor ("AuthenticAMD" 686-class) 952 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR

real mem  = 267952128 (261672K)
avail mem = 237600768 (232032K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(3b) BIOS, date 12/16/02, BIOS32 rev. 0 @ 0xfb350
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf/0xb7d0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdce0/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 7 10 11
pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xd000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8363 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "VIA VT8363 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x4153 rev 0x00
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
vendor "ATI", unknown product 0x4173 (class display subclass 
miscellaneous, rev 0x00) at pci1 dev 0 function 1 not configured

pcib0 at pci0 dev 7 function 0 "VIA VT82C686 ISA" rev 0x22
pciide0 at pci0 dev 7 function 1 "VIA VT82C571 IDE" rev 0x10: ATA66, 
channel 0 configured to compatibility, channel 1 configured to compatibility

wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 58644MB, 120103200 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI0 
0/direct removable

sd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x1b
SENSE KEY: Not Ready
 ASC/ASCQ: Medium Not Present
sd0: drive offline
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
sd0(pciide0:0:1): using PIO mode 0
atapiscsi1 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi1: 2 targets
cd0 at scsibus1 targ 0 lun 0: <_NEC, CD-RW NR-9100A, 2.12> SCSI0 
5/cdrom removable

atapiscsi2 at pciide0 channel 1 drive 1
scsibus2 at atapiscsi2: 2 targets
cd1 at scsibus2 targ 0 lun 0: <_NEC, DVD_RW ND-3520A, 1.04> SCSI0 
5/cdrom removable

cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x10: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3 "VIA VT83C572 USB" rev 0x10: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viaenv0 at pci0 dev 7 function 4 "VIA VT82C686 SMBus" rev 0x30
auvia0 at pci0 dev 7 function 5 "VIA VT82C686 AC97" rev 0x20: irq 7
ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec f