Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72363 - Alsa-oss works very fast
Summary: Alsa-oss works very fast
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-24 09:37 UTC by booxter
Modified: 2004-12-05 11:43 UTC (History)
2 users (show)

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 booxter 2004-11-24 09:37:25 UTC
While running 
aoss blah-blah-blah
I hear the sounds? but they are very fast (3-minutes mp3 longs for 3-5 seconds).
Soundcard: Via 82c686b (on m/board)
Kernel: 2.6.7 (vanilla with vesa-tng)
At the same time artsdsp works fine.
What could I do to hear music in the normal speed?
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-24 09:47:29 UTC
I have the same problem here, there is the workaround to use the kernel-mode alsa emulation, but that does not allow you to use it with dmix, which is what probably most of the people want.
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-24 12:09:32 UTC
booxter: Please provide your 'emerge --info' output as well so we can know what architecture you're on.

Can you try the previous version of alsa-oss?
Comment 3 booxter 2004-11-26 09:08:23 UTC
It doesn't work even w/o dmix and other sound servers etc.

tux root # emerge --info
Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.4.20040808-r1, 2.6.7 i686)
=================================================================
System uname: 2.6.7 i686 Unknow CPU Type
Gentoo Base System version 1.4.16
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.4.3-r4
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /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 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/mnt/media/gentoo-distr/distfiles"
FEATURES="autoaddcvs ccache distlocks 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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd encode f77 foomaticdb gdbm gif gpm gtk2imlib jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib linguas_ru linguas_en linguas_by"

tux root #
Comment 4 booxter 2004-11-26 09:37:24 UTC
tux root # emerge =media-libs/alsa-oss-0.9.8
Calculating dependencies ...done!
>>> emerge (1 of 1) media-libs/alsa-oss-0.9.8 to /
>>> md5 src_uri ;-) alsa-oss-0.9.8.tar.bz2
>>> Unpacking source...
>>> Unpacking alsa-oss-0.9.8.tar.bz2 to /var/tmp/portage/alsa-oss-0.9.8/work
>>> Source unpacked.
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD compatible install... /bin/install -c
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking how to recognise dependant libraries... pass_all
checking command to parse nm output... ok
checking how to run the C preprocessor... gcc -E
checking for dlfcn.h... yes
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.9.0... found.
checking for snd_ctl_open in -lasound... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating aoss
source='alsa-oss.c' object='alsa-oss.lo' libtool=yes \
depfile='.deps/alsa-oss.Plo' tmpdepfile='.deps/alsa-oss.TPlo' \
depmode=gcc3 /bin/sh ./depcomp \
/bin/sh ./libtool --mode=compile gcc -DPACKAGE=\"alsa-oss\" -DVERSION=\"0.9.8\" -DHAVE_DLFCN_H=1 -DHAVE_LIBASOUND=1  -I. -I.     -O2 -march=athlon-xp -fomit-frame-pointer -c -o alsa-oss.lo `test -f alsa-oss.c || echo './'`alsa-oss.c
mkdir .libs
gcc -DPACKAGE=\"alsa-oss\" -DVERSION=\"0.9.8\" -DHAVE_DLFCN_H=1 -DHAVE_LIBASOUND=1 -I. -I. -O2 -march=athlon-xp -fomit-frame-pointer -c alsa-oss.c -MT alsa-oss.lo -MD -MP -MF .deps/alsa-oss.TPlo  -fPIC -DPIC -o .libs/alsa-oss.lo
alsa-oss.c: In function `oss_dsp_hw_params':
alsa-oss.c:220: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast
alsa-oss.c:258: warning: passing arg 3 of `snd_pcm_hw_params_set_period_size_near' makes pointer from integerwithout a cast
alsa-oss.c:263: warning: passing arg 3 of `snd_pcm_hw_params_set_period_size_near' makes pointer from integerwithout a cast
alsa-oss.c:275: error: too few arguments to function `snd_pcm_hw_params_get_rate'
alsa-oss.c:277: error: too few arguments to function `snd_pcm_hw_params_get_period_size'
alsa-oss.c:278: error: too few arguments to function `snd_pcm_hw_params_get_periods'
make: *** [alsa-oss.lo] Ошибка 1

!!! ERROR: media-libs/alsa-oss-0.9.8 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! Parallel Make Failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-26 11:29:06 UTC
booxter: 0.9 has a different API than 1.0, so it won't work... I meant what about one of the previous 1.0.x versions (or 1.0.7 since it looks like you were using 1.0.6)... to emerge one of the ones removed fromt he kernel, just do:

cp alsa-oss-1.0.6.ebuild alsa-oss.1.0.4.ebuild
ebuild alsa-oss.1.0.4.ebuild digest
Comment 6 booxter 2004-11-29 06:53:04 UTC
I was wrong:
alsa-oss doesn't work only with mpg123, i.e.
aoss mpg123 some.mp3
But mp3blaster(works with OSS) plays mp3s fine. So:
What's the hell is it? Why only mpg123 doesn't work?
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-29 07:23:49 UTC
Does it work with the flash plugin for mozilla?
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-12-04 13:34:37 UTC
Ok, please file a bug with the upstream alsa developers at https://bugtrack.alsa-project.org/alsa-bug/main_page.php and let me know the URL to that bug so I can follow it.