From: Peter Kirk <pwk.linuxfan@gmx.de>
To: alsa-devel@lists.sourceforge.net
Subject: Re: smart and automatic use of dmix and dsnoop - feature suggestion.
Date: Mon, 17 Nov 2003 20:08:26 +0100 [thread overview]
Message-ID: <200311172008.28812.pwk.linuxfan@gmx.de> (raw)
In-Reply-To: <Pine.LNX.4.53.0311171944280.16992@pnote.perex-int.cz>
WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Montag, 17. November 2003 19:50 schrieb Jaroslav Kysela:
> On Mon, 17 Nov 2003, Peter Kirk wrote:
> > WARNING: Unsanitized content follows.
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Am Montag, 17. November 2003 18:16 schrieb Mark Hubbard:
> > > Peter Kirk has an important point. Default dmix ("smart" could be a
> > > misnomer) will only work as the default pcm, therefore if one
> > > application is set-up to use surround51 and another set-up to use
> > > default, then nothing is going to be mixed. It would be better, for the
> > > sake of simplicity and ALSA's target user, to abandon the various pcm
> > > definitions and only use default which would work with all set-ups....I
> > > believe this is what Peter means by "smart".
> >
> > Well,
> >
> > no smart dmix is no "misnomer". What I mean with it is: a implementation
> > of dmix that only starts to mix if there is a need to do it - as long as
> > the soundcard can handle streams without mixing the smart dmix will not
> > do anything, except pass untouched streams to the hardware...when the
> > first stream that would exceed hardware limitation is sent to the sound
> > device, smart dmix would start mixing this stream into one of the
> > existing ones.
>
> The problem is that it's not possible. If you have one application which
> settled parameters with alsa-lib (and alsa driver) we cannot reroute this
> stream to dmix. The dmix plugin works with some assumptions (predefined
> parameters applied at start of first application) and all clients
> (applications) must share same parameters, of course.
Ok,
what you say seems to be valid to me, but not if you implement smart dmix the
way I said =). The way I suggested *every* application would connect to smart
dmix, and none directly to alsa lib (except those that use devices like hw: -
and those should never be mixed). Since every stream is connected to smart
dmix, there is no need to *reroute* anything in the case of needed mixing.
The only thing that has to happen, is that the new stream, that has to be
mixed into the existing one due to hardware limitations has to be resampled
etc. to make mixing possible.
>
> > You name a device I didnt know... "surround51". But, since this is what I
> > call a "consumer app device", smart dmix would lure behind that too, and
> > apply mixing magic if necessary.
>
> It's not too easy.
>
> I think that we should go in another direction. In my eyes, the best thing
> would be to create a very user friendly (graphical) configuration tool for
> alsa-lib which offers with a few clicks to choose dmix, plug or raw access
> to devices. Many users want to do also some "additional" things like
> stereo stream expansion to rear speakers and so on.
In my eyes, configuration should only be necessary if there are any downsides
to an automagic sollution. As long as you dont convice me of some severe
missfeature my suggested smart dmix would impose on the users - there
shouldnt be any need for configuration.
Peter
- --
Always try to do things in chronological order; it's less confusing that way.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/uRyqg2ieGvTmHiURAhChAJ9JRoy1JtgbguMN8uBfDXNCxyBcVgCghw10
EvsraioHl1UOyiSPQzgcdsQ=
=1+6V
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
next prev parent reply other threads:[~2003-11-17 19:08 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-14 1:43 smart and automatic use of dmix and dsnoop - feature suggestion Peter Kirk
2003-11-14 12:21 ` 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 [this message]
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=200311172008.28812.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.