dslm4515 / BMLFS

Beyond Musl Linux From Scratch - Build Recipes for MLFS [Musl Linux From Source]
17 stars 4 forks source link

Have anyone tried to use sndio in a (Musl-)LFS build? #26

Open takusuman opened 2 years ago

takusuman commented 2 years ago

I think that would be a great experiment.

takusuman commented 2 years ago

By the way, sndio officially supports Linux, FreeBSD, NetBSD and, obviously, OpenBSD; so, in theory, we shouldn't have any problems.

EDIT: Void Linux template file for further reference: https://github.com/void-linux/void-packages/blob/master/srcpkgs/sndio/template

takusuman commented 2 years ago

It seems like it's still leaning on ALSA for communicating with the Linux kernel, but it still a lot saner than PulseAudio.

dslm4515 commented 2 years ago

Wait, I think I did when building pipewire.

takusuman commented 2 years ago

I was thinking in making my build with it, but I couldn't find a lot of information on it. I mean, how does it depend on ALSA to work on Linux (and could I use OSS?)? What I'd need to compile? Et cetera, et cetera, et cetera...

I can try building it later here and seeing how does it work.

dslm4515 commented 2 years ago

I just checked. I built it as “libsndio”

https://github.com/dslm4515/BMLFS/build-scripts/libsndio.build

takusuman commented 2 years ago

I will study it more later when I can go back to my desk without having to worry with other appointments.

takusuman commented 2 years ago

May I can contribute here with something related to sndio.

dslm4515 commented 2 years ago

Sure.

i was thinking of finding an alternative to Pulseaudio… maybe pipewire with sndio?

I remember my early builds of LFS did not use pulseaudio.

takusuman commented 2 years ago

Sure.

i was thinking of finding an alternative to Pulseaudio… maybe pipewire with sndio?

I remember my early builds of LFS did not use pulseaudio.

I think PipeWire already do what sndio does and vice-versa. There's an article at Wikipedia briefly explaining how it works: https://en.wikipedia.org/wiki/Sound_server#Sound_server_in_an_operating_system

takusuman commented 2 years ago

sndio and PipeWire are both audio servers, it, theoretically, do the same thing --- PulseAudio too, just to complement.

takusuman commented 2 years ago

It would be cool if we could substitute the Sound Subsystem, although ALSA still seeming the best option nowadays in comparison to OSS in terms of support to hardware.