From: Manuel Jander <manuel.jander@mat.utfsm.cl>
To: Alsa Devel list <alsa-devel@lists.sourceforge.net>
Subject: ALSA lib application compatibility [was] Re: mixer device
Date: Tue, 18 May 2004 09:30:54 -0400 [thread overview]
Message-ID: <1084887054.1835.14.camel@localhost> (raw)
In-Reply-To: <Pine.LNX.4.58.0405181545510.13943@spring>
Hi,
On Tue, 2004-05-18 at 15:46 +0200, barat@medien.uni-weimar.de wrote:
> On Thu, 13 May 2004, Adam Tla/lka wrote:
>
> > On Wed, May 12, 2004 at 05:40:55PM +0200, Clemens Ladisch wrote:
> >
> > ALSA is complicated and we have no good manual describing proper use
> > of its api. You can easily prove this: many programs have ALSA output
> > modules but they are working worse then when using OSS.
> > For example mplayer with OSS synchronizes video and sound much faster
> > in case of network streaming. XMMS is broken too.
> ?? mplayer isn't broken in any way with alsa. it supports alsa since the
> early days and also current versions very well. please don't talk
> bullshit.
> it probably does av-sync faster at some particular streams (what ever you
> mean with that) with oss, but i never ever saw some significant
> performance differences compared to oss.
> at least it supports real mmaped-io for up to 2 channels.
>
Unfortunately i have to agree with Clemens. In my opinion the ALSA API
is giving the applications too much freedom in choosing parameters and
does not enforce any restrictions on hardware that can't support them.
As the main author of the Aureal Vortex driver, its very stupid having
to handle arbitrary period sizes, introducing a lot of overhead and
complexity in the driver, while the hardware just is not designed to
handle period sizes that are not powers of two, due to page boundary
overlapping trouble. Obviously as a result, OSS works much better, since
it almost ever chooses the biggest buffer possible, resulting in a sane
period size. Period sizes of 314.15.14 bytes are just silly, plain
stupid. The user won't notice any difference if its 256 instead, but
since the app insist in such period sizes it just fails, and the user
gets no sound all. The behaviour of the user application in the end
depends too much on the hardware it is running on.
AFAIK, the ICE1712 has exactly the same hardware restriction. I know
that the via driver does cope with this, but that particular hardware
has special hardware resources for such a thing, where other hardware
don't.
The cost of allowing any parameter value is not worth it in my opinion.
Its actually causing a lot of trouble.
Well, i don't ask for changes in the ALSA API, but for teaching
application developers to -please- be polite to the ALSA drivers, and to
take into account the possible restriction they apply.
Best Regards
Manuel Jander
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
next prev parent reply other threads:[~2004-05-18 13:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-10 19:51 mixer device Ronald S. Bultje
2004-05-12 15:40 ` Clemens Ladisch
2004-05-13 15:34 ` Adam Tla/lka
2004-05-13 15:51 ` Paul Davis
2004-05-13 16:28 ` Giuliano Pochini
2004-05-13 17:10 ` Adam Tla/lka
2004-05-18 13:46 ` barat
2004-05-18 13:30 ` Manuel Jander [this message]
2004-05-18 14:49 ` ALSA lib application compatibility [was] " James Courtier-Dutton
2004-05-18 15:00 ` Takashi Iwai
2004-05-18 14:23 ` ALSA lib application compatibility [was] Re: [Alsa-devel] " Manuel Jander
2004-05-19 10:27 ` Jaroslav Kysela
2004-05-18 15:55 ` ALSA lib application compatibility [was] Re: mi Giuliano Pochini
2004-05-14 8:22 ` mixer device Ronald S. Bultje
2004-05-18 10:31 ` Clemens Ladisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1084887054.1835.14.camel@localhost \
--to=manuel.jander@mat.utfsm.cl \
--cc=alsa-devel@lists.sourceforge.net \
--cc=mjander@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.