Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 60945

Summary: esound-0.2.35 plays sound at 44.1khz when only 48khz is supported
Product: Gentoo Linux Reporter: Calvin Walton <kepstin+gentoobugzilla>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nuno.araujo, sound
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59768, 64135, 66864    

Description Calvin Walton 2004-08-19 14:10:28 UTC
I have a rather ppor onboard soundcard that only supports playing sound at 48khz. I'm using the intel8x0 alsa driver from the 2.6.8 kernel, and alsa-lib 1.0.5-r3.

esd 0.2.35, unlike the previous version, plays back 44.1khz sound without resampling it to 48khz. This can seen with the output from, e.g. mpg321:

mpg321 -o esd

w/ esound-0.2.34:
 Playing MPEG stream from Gerry Rafferty - Baker Street.mp3 ...
 MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
 Audio device open for 44.1Khz, stereo, 16bit failed
 Trying 44.1Khz, 8bit stereo.
 Audio device open for 44.1Khz, stereo, 8bit failed
 Trying 48Khz, 16bit stereo.

w/ esound 0.2.35:
 Playing MPEG stream from Gerry Rafferty - Baker Street.mp3 ...
 MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo

Reproducible: Always
Steps to Reproduce:
1. emerge =media-sound/esound-0.2.35 on hardware that only supports 48khz playback
2. attempt to play 44.1khz sound


Actual Results:  
The sound was choppy and distorted from being played back at the wrong sample rate.

Expected Results:  
The sound should be resampled to the correct rate.

Portage 2.0.51_pre20 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0,
2.6.8-gentoo i686 AMD Athlon(tm) XP 2400+)
=================================================================
System uname: 2.6.8-gentoo i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.5.3
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.7-r4
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/bmg-main /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aalib acpi alsa apache2 apm audiofile avi berkdb bonobo
bzlib cdparanoia cdr crypt cups curl dba dvd edl encode esd evo exif faad fam
fbcon flac foomaticdb ftp gd gdbm gif gimp gimpprint gnome gnomedb gphoto2 gpm
gstreamer gtk gtk2 gtkhtml guile imlib java javascript joystick jpeg libcaca
libg++ libgda libwww mad mikmod mime mmx mng motif mozcalendar mozdevelop
mozilla mozsvg mozxmlterm mpeg mysql ncurses network nls nntp oggvorbis openal
opengl oss pam pdflib perl png ppds python qt quicktime readline rtc samba
scanner sdl slang sndfile speex spell sse ssl tcltk tcpd theora tiff truetype
usb wmf x86 xine xinerama xml xml2 xpm xprint xsl xv xvid zlib"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-29 03:53:09 UTC
gnome herd follows esd
Comment 2 Chris White (RETIRED) gentoo-dev 2004-09-04 21:20:44 UTC
*bump* ?
Comment 3 foser (RETIRED) gentoo-dev 2004-09-05 01:41:09 UTC
bump ? wth man, this is no forum & even if it was...
Comment 4 foser (RETIRED) gentoo-dev 2004-10-09 05:24:59 UTC

*** This bug has been marked as a duplicate of 59779 ***