Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Alsa, Pulse, whatever...  (gelezen 782 keer)

Offline Amiguntu

  • Lid
Alsa, Pulse, whatever...
« Gepost op: 2011/09/15, 11:42:12 »
Dag allemaal,

Ben een tijdje weggeweest van Ubuntu, omdat ik even Andere Belangrijke Computerdingen te doen had, maar nu ben ik er weer. En ik heb een vraag ofzo.

De situatie is als volgt: ik heb 10.04 lts geïnstalleerd op een MSi Wind netbookje en in principe loopt dat out of the box probleemloos. Zelfs zomaar in enen draadloos internet!

Dat ding ga ik gebruiken in het onderwijs, met name om Audacity uit te leggen (hbo radio-journalistiek, heb ik het over). Gaat ook prima, maar ik loop vast op het gebied van Pulse, Alsa, dat soort dingen. Wat is/doet Pulse of Alsa, eigenlijk? En wat moet ik ermee?\

Ik kom er op omdat ik Audacity niet zo gek kan krijgen om audiostreams op te nemen, of zelfs maar het opname-niveau (line in, met mini-jack, uit een professioneel recordertje of uit een audiomixer) in te stellen.

Maar leg eerst maar eens uit (of geef een link) hoe dat zit met Pulse en Alsa, alstublieft.



johan
 
~~~/\___Flevoland___/\~~~


so i throw the windows wide
and call to you across the sky...

Re: Alsa, Pulse, whatever...
« Reactie #1 Gepost op: 2011/09/15, 23:01:24 »
ALSA is the kernel level sound mixer, it manages your sound card directly. ALSA is a crap (seriously) and it can handle a few (sometimes just one) channel. PulseAudio is a software mixer, on top of the userland (like you'd run an app). When it runs, it uses Alsa's channel and manages EVERY mixing stuff, devices, network devices, everything by itself. (It's like one more unneeded layer) Actually you can run only ALSA, but you might get mixing problems and Ubuntu comes with PA support/PA dependence. (Some apps are hard coded to use PulseAudio, with custom patches and so on.) (PulseAudio also consumes much more CPU than OSS or ALSA.)

Whats the point? People say for networking it is good, and it solves the multi-channel misery, easy to develop apps for PA, easy to select new devices, to control volume by app, etc etc. However, in my opinion there is no point in PulseAudio. Okay, networking is OK. But for a simple user, its just an insane fat stuff on the system. It adds latency, it runs NOT in the kernel (Okay I won't list all the problems with it). They should write an ALSA2 (Pick out the solutions from PA and add the essential ones into Alsa). OSS solves the problem, however its not GPL, they don't like it. (The open source ...uhm... 'leaders'..) That's why they say (game developers, app developers) that they hate writing apps for Linux because the whole sound system is a messy hell.

Illustration:
Typical sound system nowadays, like Ubuntu:
KERNEL:{alsa} -> {alsa-channel} -> user:{pulseaudio} -> user:app1,app2,app3
Simple ALSA:
KERNEL:{alsa} -> dmix (it "runs in the kernel") -> user:app1,app2,app3
OSS:
KERNEL:{OSS(module)} -> user: app1,app2,app3
van http://superuser.com/questions/144648/how-do-alsa-and-pulseaudio-relate

Er zullen wel meer links te vinden zijn, maar dit vond ik wel een aardig antwoord. Ik ben zelf het meest gecharmeerd van ALSA. Maar ik ben dan ook van de oude garde. :)
In der Beschränkung zeigt sich der Meister.

Offline JvH

  • Lid
Re: Alsa, Pulse, whatever...
« Reactie #2 Gepost op: 2011/09/16, 10:10:30 »
Ik snap eerlijk gezegd sowieso niet waarom ze met alle geweld op PulseAudio moesten overschakelen.
ALSA had al z'n eigen mixer, en ik had vroegah veel minder problemen met ALSA dan nu met PA. OK, het is wel enorm verbeterd sinds het ons in 8.04 in de maag is gesplitst, maar toch is het, bij mij iig, nog zeker niet 100%.

En tja dat hele netwerkgedoe... leuk hoor, maar hoeveel doorsnee gebruikers hebben dat nu daadwerkelijk nodig?