Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT rant] udev + /usr
Date: Mon, 19 Sep 2011 19:43:37
Message-Id: CA+czFiDLetqN9pwrT55N31x8XEf3o+K_e0Kzf4REZc1aqNf4ng@mail.gmail.com
In Reply to: Re: [gentoo-user] [OT rant] udev + /usr by Alan McKinnon
1 On Mon, Sep 19, 2011 at 3:20 PM, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
2 > On Mon, 19 Sep 2011 14:02:39 -0400
3 > Michael Mol <mikemol@×××××.com> wrote:
4 >> On Mon, Sep 19, 2011 at 1:42 PM, Volker Armin Hemmann
5 >> <volkerarmin@××××××××××.com> wrote:
6 >> > Am Montag 19 September 2011, 12:37:16 schrieb Michael Mol:
7 >> >
8 >> >> I recall reading about dmix in LinuxJournal years ago, but I don't
9 >> >> think I ever got around to setting it up;
10 >> >
11 >> > you don't set it up. It just works. If your sound card does not do
12 >> > hardware mixing (onboard sound doesn't) you are using dmix.
13 >>
14 >> Ah. As I said, I hadn't poked or researched dmix since I read about it
15 >> in LinuxJournal. Pretty sure that particular issue came out over ten
16 >> years ago.
17 >>
18 >> That doesn't quite jive with my experience with apps some apps
19 >> managing to take exclusive control over sound devices. In particular,
20 >> if, e.g. Flash were run under Firefox before WINE or PulseAudio, then
21 >> the latter two didn't get to play.*
22 >
23 > Flash isn't a good example though. It just assumes that it is the most
24 > important (only?) thing in the universe, and tries to take over the
25 > hardware for itself. If I read recent blogs correctly, even Windows
26 > users suffer from the same thing with Flash.
27
28 Audio, I don't *think* so. At the very least, Vista and 7 allow you to
29 configure whether or not applications are allowed to take exclusive
30 control over a device.
31
32 Video inputs, yes.
33
34 >
35 > I think the presumption in this thread in that sound apps make *some*
36 > attempt to play nicely - Flash doesn't fit that category. The only
37 > category it fits is "useless crap that should either be deleted or only
38 > used when absolutely necessary"
39
40 That actually makes for a really good argument to use something like
41 PA's ALSA wrapper when you can't do without Flash. I hear recent
42 versions of Flash support PA directly.
43
44 I can see an argument for Flash wanting control over A/V hardware;
45 audio and video recorders have been implemented in it. Flash, IME,
46 doesn't grab A/V until a Flash applet access them, but it also doesn't
47 let them go. Perhaps their internal VM is poorly defined such that
48 it's OK for apps to assume that once they have a resource, it's always
49 there, and they're stuck maintaining that VM model for compatibility.
50
51 --
52 :wq