News for hackers. Stuff that matters.
Re:Bye CUPS: Printing with Netcat by coryrc on Tuesday August 03, 2021 @10:32PM (#28056563)
OSS got that ability decades ago, yet we still have ALSA and then the others :(
Re:Bye CUPS: Printing with Netcat by PaulDavisThe1st on Tuesday August 03, 2021 @10:44PM (#28056629)
OSS did not have the ability when it was removed from the kernel and replaced by ALSA, which did have that ability already.

There were (and are) many problems with the OSS API, a number of which continue to exist in the ALSA API too.

All serious audio APIs (plugins, or native audio I/O) use a pull model at the bottom of the stack, so that i/o is driven by the hardware. You can layer a push model (where software does blocking read/write calls whenever it wants) on top of that, but not the other way around.

And yes, OSS and ALSA both implement select/poll etc. for audio devices, but do not enforce the use of this model, resulting in the 2000s being filled with Linux (and *BSD) apps that couldn't function correctly without oodles of buffering.

Re:Bye CUPS: Printing with Netcat by gjasny on Wednesday August 04, 2021 @04:30AM (#28058631)
I remember the mixer interface (channel volumes, mute states, routing matrix) was far superior with ALSA.

I used a script to toggle the SPDIF output stream of my Soundblaster Live to get track marks on the Mini Disc player recording the output.