View previous topic :: View next topic |
Author |
Message |
spork_kitty Tux's lil' helper

Joined: 05 Jul 2019 Posts: 124
|
Posted: Sun Jan 12, 2020 6:09 pm Post subject: |
|
|
axl wrote: | pulse doesn't work without alsa.
alsa without pulse is just single stream audio. |
That is patently false. ALSA will use dmix by default, and divides streams according to their source like Line-In, Front/Back speaker, etc. (see: alsamixer) Using .asoundrc you can define as many streams as you want, and configure programs to use them if you want.
PA does a lot of this automatically since it's a layer on top of ALSA, but you don't need PA to have multiple audio sources. PA's fancy features couldn't work without ALSA supporting them lower in the stack.
Now, if we want to argue that ALSA configuration is not approachable then I'll agree, but its default behavior to use dmix has been such for a long time, and it has less latency than PA. |
|
Back to top |
|
 |
crocket Guru

Joined: 29 Apr 2017 Posts: 449
|
Posted: Mon Jan 13, 2020 12:55 am Post subject: |
|
|
Once you learn to write ~/.asoundrc, ALSA becomes easier than pulseaudio. |
|
Back to top |
|
 |
axl Veteran


Joined: 11 Oct 2002 Posts: 1072 Location: Romania
|
Posted: Mon Jan 13, 2020 11:09 pm Post subject: |
|
|
spork_kitty wrote: | axl wrote: | pulse doesn't work without alsa.
alsa without pulse is just single stream audio. |
That is patently false. ALSA will use dmix by default, and divides streams according to their source like Line-In, Front/Back speaker, etc. (see: alsamixer) Using .asoundrc you can define as many streams as you want, and configure programs to use them if you want.
PA does a lot of this automatically since it's a layer on top of ALSA, but you don't need PA to have multiple audio sources. PA's fancy features couldn't work without ALSA supporting them lower in the stack.
Now, if we want to argue that ALSA configuration is not approachable then I'll agree, but its default behavior to use dmix has been such for a long time, and it has less latency than PA. |
Is it? can you show me playing 2 pcm streams on a single alsa output at the same time?
DO NOT cheat. i know there are several cards which do multistreams by their own. like emu10k1.
if i'm wrong, i'll take it back.
but such as it is, I have 99 computers which simply don't have sound. 2 that do. those 2 have like ALL the sound. with bluetooth. pulse. all the things. whatever. phat install. i'm not advocating to install pulse blindly everywhere, but you could use it to stream through ssh. so... yeah. even on some of those 99, there is pulse.
One I can easily talk about, but it doesn't directly has pulse. it uses pulse. there's a pulse reader. streaming. and that reader is feeded text through... means. and one of the things I stole from apple is the exact hour. and I feed this text: it's now 01 hours.
like I said, maybe 99% of the time pulse is pointless. but if you have a gimp sound card, and you want to listen like 2 audiostreams from chromium, and set volume differently between them, u need pulse. or if you want a different volume between chromium and let's say a game. or anything else. like... change output with a mouseclick to bluetooth headphones.
i know how this works. u can't tell me alsa does all that on its own. as a user.
and since we are on arm, it stand to reason that u are not root, dont have a multiplexing sound card, and honestly on raspberry pi, pulse doesn't work all that bad. |
|
Back to top |
|
 |
axl Veteran


Joined: 11 Oct 2002 Posts: 1072 Location: Romania
|
Posted: Mon Jan 13, 2020 11:54 pm Post subject: |
|
|
dear god we gone offtopic. but since the topic is cross-compilation.
cross emerge is awesume. cross-emerge. CHOST this, and CBUILD that, and ROOT is there, and PKG_CONFIG_PATH is there, plus that. and there it is. a new gentoo is born.
5 years ago it sounded alien to me. Now ... i can actually build anything without actually having.. it.
like ... i havent' powered on my pentium2 in a while. but due to cross emerge things are up to date. my ps3. most of my arms are just shot down since 9980xe has come. but they are updated. without actually being powered on.
no parade. no guide. nobody making a party. but cross emerge is one of the coolest things I learned in the past 2-3 years.
TRUE cross-compilation is when you can make a complete different arch... without ever having that arch. that is COOOOOOL. and should not be confused with whatever this thread degenerated into. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|