Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25698 - Sound playback in SDL through ALSA >= 0.9.2 on VIA 8233A chipset is out of sync
Summary: Sound playback in SDL through ALSA >= 0.9.2 on VIA 8233A chipset is out of sync
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-01 06:24 UTC by Sundance
Modified: 2003-11-19 08:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sundance 2003-08-01 06:24:29 UTC
Using any version of ALSA from 0.9.2 onward on the VIA 8233A chipset, sound playback through 
SDL is very poor quality -- sound is being played too fast, and is jittery. 
 
Note 1: The problem seems to have started when the snd-via8233 driver (used specifically by this 
chipset) got merged into the snd-via82xx one (used for all the chipsets of that series). When using 
ALSA 0.9.0_rc2, which still features the snd-via8233 driver, there is no problem. 
 
Note 2: By design, if I remember correctly, the VIA 8233A hardware can only output sound at a 
given frequency (48,000Hz I think). I gathered that sample rate translation is supposed to be done 
at driver level. From the sound of it, it is very possible that the sound issues are caused by 
untranslated (44,100Hz for instance) samples being sent to the hardware. 
 
Note 3: Playing the very same sounds with the very same programs using directly either ALSA or 
ALSA's OSS emulation, works perfectly. The problem happens only when playing sounds using SDL. 

Reproducible: Always
Steps to Reproduce:
1. install alsa-drivers >= 0.9.2 
2. install SDL 
3. mplayer -ao sdl <anything video with a soundtrack> -- or any other app playing sounds using 
SDL, like Frozen Bubble or UT 2003. 
Actual Results:  
Broken sound playback as described above -- sound too fast and jittery. 

Expected Results:  
Good sound playback. 

emerge info: 
 
Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) 
================================================================= 
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1600+ 
GENTOO_MIRRORS="http://mirrors.sunsite.dk/gentoo/ 
http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.rez-gif.supelec.fr/pub/Linux/distrib/gentoo/ 
" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/usr/local/portage" 
USE="x86 3dnow foomaticdb gnome libg++ mad xml2 tetex bonobo svga ggi tcltk guile libwww perl 
esd gtk motif aalib acl acpi alsa apm arts avi berkdb cdr crypt cups dga doc dvd encode ethereal 
flash gdbm gif gphoto2 gpm gps imap imlib innodb java jikes jpeg kde maildir mbox mikmod mmx 
mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib png python qt quicktime 
readline samba sasl scanner sdl slang spell sse ssl tcpd tiff truetype usb wmf X xmms xv zlib" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" 
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
FEATURES="ccache sandbox userpriv usersandbox" 
 
 
Currently installed versions of libsdl and sdl-mixer are both 1.2.5-r2.