From: Francesco Abbate <segfault@email.it>
To: alsa-devel@lists.sourceforge.net
Subject: problems with ALSA and SDL
Date: Tue, 27 Jan 2004 19:01:40 +0100 [thread overview]
Message-ID: <20040127190140.29693112.segfault@email.it> (raw)
Hello everyone,
I've recently switched to the 2.6.x kernel and I've decided to
switch to ALSA too.
I've enabled ALSA into the kernel *without* OSS emulation and
I've began to manage to get things works.
Now I can say that everything works with the exception of sfxload
(the program that load the soundfont for the AWE32/64) which still
require OSS (emulated or not). But this is not the problem I want
to discuss here.
One of the major problem I've encountered with ALSA is that it *seems*
to be very CPU intensive.
In fact I've compiled the SDL library with ALSA and I've discovered that
my CPU is not fast enough to run the game when the sound is anabled.
The CPU get a very heavy load and the sound is badly scattered (buffer
underrun I suppose).
The strange thing is that I've tried quite simple game that previously
works very well with OSS. My CPU is also not so bad because it is an
AMD K6 MMX 200 MHz.
I've given a glance to the ALSA code of SDL and it seems to be plain
PCM playback code without any sofistication.
At beginning I was thinking that the problem was the use of "plughw"
instead of "hw" but I've tried with "hw" and the situation is still
the same.
So the question is :
is ALSA much more CPU intensive then OSS or there is some
technical problem which cause this effect ?
why there is such difference with OSS ?
I hope I've not to switch back to OSS simply because I cannot run
some *simple* games.
--
Francesco Abbate
--
Francesco Abbate
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
next reply other threads:[~2004-01-27 18:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-27 18:01 Francesco Abbate [this message]
2004-01-27 22:20 ` problems with ALSA and SDL Michel Dänzer
2004-01-31 8:48 ` Jaroslav Kysela
-- strict thread matches above, loose matches on Subject: below --
2004-02-01 20:42 Francesco Abbate
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=20040127190140.29693112.segfault@email.it \
--to=segfault@email.it \
--cc=alsa-devel@lists.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.