From: Peter Kirk <pwk.linuxfan@gmx.de>
To: alsa-devel@lists.sourceforge.net
Subject: smart and automatic use of dmix and dsnoop - feature suggestion.
Date: Fri, 14 Nov 2003 02:43:37 +0100 [thread overview]
Message-ID: <200311140246.14873.pwk.linuxfan@gmx.de> (raw)
WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi guys,
In the last few days I have been reading a lot about how to mix streams into
one in order to allow *weak* soundcards to play multiple streams, even though
they cant do that in hardware. This seems to be doable with dmix. Also, I
have thought about the situation where the capture devices are used up, for
this I found the plugin "dsnoop".
After thinking a bit about the situation I thought the following would be a
great idea (a feature suggestion to alsa):
Alsa knows howmany playback and howmany capture devices it has, and it also
knows howmany times they can be opened. So, the result are two numbers:
The amount of streams that can be played back in hardware, AND
The amount of times an application can open a capture stream.
So, these are two numbers - and basicly all is fine as long as you dont want
to excede them, but if you do, you need to use dmix or dsnoop. Why not use
dmix and dsnoop automaticly when necessary ? Wouldnt it be possible to have
every application play through something like a "smartdmix", that would just
pass on the sound-streams to real-world devices, as long as there are still
playback devices that can handle annother stream...once the user opens a
playback stream while there is no *free*slot* for it, the "smartdmix" would
start mixing this stream with one of the already existing streams, making it
possible to play back although the hardware wouldnt have supported the extra
stream.
Same idea with the capture part...as long as there are still capture devices a
utility called "smartdsnoop" would just pass on the capture stream directly
from the existing capture device, and only once the first application is
opened that claims to need to capture and for which there is no free capture
device, smartdsnoop would split one capture stream into two - and so be able
to serve this new application.
After all this babble, here is what I expect from the above:
- - Near zero overhead as long as the system uses the soundcard in the limits
the soundcard provides.
- - Support for any amount of playback and capture streams, no matter on what
soundcard (provided of course the soundcard has at least one playback and one
capture device :D).
- - Near zero configuration/tuning work needed to be done by the user, all done
by smartdmix and smartdsnoop.
- - Low cpu and latency misuse - since the *mixing* or *spliting* capabilities
are only activated when needed, and deactivated when not used anymore.
Hope to hear your opinions on this,
Peter
- --
Take what you can use and let the rest go by.
-- Ken Kesey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/tDNJg2ieGvTmHiURAl0XAJ9iEIqiEQAfhGElsAh8ddNtBu9YKQCbB7qF
jx5IU70naqNZrMbYtejShFY=
=dFm/
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
next reply other threads:[~2003-11-14 1:43 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-14 1:43 Peter Kirk [this message]
2003-11-14 12:21 ` smart and automatic use of dmix and dsnoop - feature suggestion Paul Davis
2003-11-14 13:01 ` Peter Kirk
2003-11-14 13:20 ` Takashi Iwai
2003-11-14 15:11 ` Mark Hubbard
2003-11-14 15:31 ` Takashi Iwai
2003-11-15 2:46 ` Peter Kirk
2003-11-17 1:37 ` Mark Hubbard
2003-11-17 9:56 ` Frank Barknecht
2003-11-17 10:32 ` Takashi Iwai
[not found] ` <200311171434.50285.pwk.linuxfan@gmx.de>
2003-11-17 14:33 ` Takashi Iwai
2003-11-17 17:16 ` Mark Hubbard
2003-11-17 18:23 ` Peter Kirk
2003-11-17 18:50 ` Jaroslav Kysela
2003-11-17 19:08 ` Peter Kirk
2003-11-17 19:36 ` Paul Davis
2003-11-17 20:05 ` Jaroslav Kysela
2003-11-17 20:28 ` Peter Kirk
2003-11-17 21:58 ` James Courtier-Dutton
2003-11-18 5:51 ` Peter Kirk
2003-11-18 7:30 ` Paul Davis
2003-11-17 20:32 ` Paul Davis
2003-11-17 18:18 ` Peter Kirk
2003-11-17 18:49 ` Takashi Iwai
2003-11-17 19:16 ` Peter Kirk
2003-11-17 19:40 ` Paul Davis
2003-11-17 19:48 ` Peter Kirk
2003-11-17 20:34 ` Paul Davis
2003-11-17 20:04 ` Florian Schmidt
2003-11-17 18:30 ` Peter Kirk
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=200311140246.14873.pwk.linuxfan@gmx.de \
--to=pwk.linuxfan@gmx.de \
--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.