1 |
On Thu, May 20, 2010 at 5:08 PM, Nikos Chantziaras <realnc@×××××.de> wrote: |
2 |
> Because as soon as you disable ALSA dmix and/or Pulse, suddenly you get |
3 |
> acceptable sound latency. |
4 |
> |
5 |
> With OSS4, which has in-kernel mixing, it doesn't matter if you enable the |
6 |
> mixer or disable it; sound always has acceptable latency. |
7 |
|
8 |
By that reasoning, the GUI should be in-kernel too. It would be then |
9 |
really responsive al the time. I don't buy the argument. |
10 |
|
11 |
> Thus, I can only conclude that mixing has to happen in-kernel. But I base |
12 |
> this only on the ALSA/Pulse vs OSS4 comparison. It could also be that the |
13 |
> user-space implementation of ALSA just sucks. But that's hard to believe, |
14 |
> since if that were the case they would have fixed it several years ago |
15 |
> already. |
16 |
|
17 |
No, it doesn't has to happen in-kernel; all the linux based phones |
18 |
(which deal primarily with, you know, audio, including heavy use of |
19 |
multimedia) use PulseAudio. And these are not very powerful machines; |
20 |
so if the mixing in user space works in low powered devices, it must |
21 |
work everywhere. I don't buy this argument either. |
22 |
|
23 |
> It sounds reasonable from a designer's point of view. But a system is |
24 |
> useless if it's only designed good but doesn't actually work in a |
25 |
> satisfactory manner. |
26 |
|
27 |
It works for me, I repeat, and for a lot of other folks too. It's not |
28 |
only a design decision made because it's "elegant"; it's made because |
29 |
it works "in a satisfactory manner" (ex. me, others, Linux phones), |
30 |
and because it's more flexible: put it in the kernel, and you loose |
31 |
the capacity to do important changes and extensions (specially with |
32 |
the way the Linux kernel development works). |
33 |
|
34 |
In short, because it works "in a satisfactory manner" (to me and many |
35 |
others, including all the N900 and Android users out there), I also |
36 |
don't buy this argument. |
37 |
|
38 |
> Sorry, that just pretentious of you here. PulseAudio is the most flamed at, |
39 |
> hated, sound-related software around. And this is because it does *not* |
40 |
> work for many, many users, and the first thing they try to do is find out |
41 |
> how to disable the thing. |
42 |
|
43 |
Sorry, but I believe the you are the one being pretentious; how long |
44 |
has been since you tried PulseAudio? It has come a loooong way, and I |
45 |
haven't seen any real flames against PulseAudio in many months (and |
46 |
it's enabled in all major distributions). And that is because it's |
47 |
working (I repeat my words) "for me and many more". |
48 |
|
49 |
> You're mistaken in that a mixer should be in the same boat as network |
50 |
> streaming, bluetooth, etc, etc. I believe the *mixer* should be in-kernel. |
51 |
> Everything else doesn't need to be. PulseAudio's extreme latency problems |
52 |
> (which even upstream admits can't be fixed easily) stem from that. |
53 |
|
54 |
I respectfully disagree; the kernel should pass along data and |
55 |
messages to the sound hardware, and everything else (*including |
56 |
mixing*) should be in user space. Not only in theory from an academic |
57 |
and aesthetic point of view; *it also works*, to me, to many users who |
58 |
doesn't complain (despite PulseAudio being used by default in ALL |
59 |
major distributions), and to ALL the users of Android and MeeGo. |
60 |
|
61 |
And to finish, I don't know how much you know about technical |
62 |
decisions and design, but I know that Linus refused to accept OSS4 in |
63 |
the kernel, I know that all major distributions decided to go with |
64 |
PulseAudio, and I know that Intel, Nokia and Google are betting for |
65 |
it. |
66 |
|
67 |
So, no offense, but I trust more in those guys and the arguments I |
68 |
have heard from them. And the consensus with them is to use |
69 |
PulseAudio, and leave the mixing in user space. |
70 |
|
71 |
Regards. |
72 |
-- |
73 |
Canek Peláez Valdés |
74 |
Instituto de Matemáticas |
75 |
Universidad Nacional Autónoma de México |