Remix.run Logo
functionmouse 4 hours ago

whoa, bit perfect CD/flac playback in 44.1, that's a killer feature.

IshKebab 3 hours ago | parent [-]

There are many audio resampling libraries available that can convert from 44.1 to 48 kHz with no perceptible quality loss. E.g. see

https://github.com/hasenbanck/resampler#quality-analysis

This is presumably what Apple does. You kind of have to anyway or you have the stupid situation Linux used to have where only one app could play audio at a time.

chronogram 3 hours ago | parent | next [-]

Hardware often reports supporting 44.1kHz but internally resamples it to 48kHz so you're better off properly resampling it yourself.

embedding-shape an hour ago | parent | prev [-]

> you have the stupid situation Linux used to have where only one app could play audio at a time

When was that? I think my first Linux distribution was Ubuntu 8.04 and fairly sure it shipped with PulseAudio which in mind always been able to play audio from multiple sources at the same time, maybe I misremember?

Matl 3 minutes ago | parent | next [-]

Pure ALSA would behave like that because the currently playing process would take exclusive control of the hardware.

Upsite: Highest quality playback.

Downside: Only one process could play audio at a time.

mixmastamyk 32 minutes ago | parent | prev | next [-]

Came later I believe. They had esd and other sound “servers” back then however. Might have had to install it yourself.

skydhash 24 minutes ago | parent | prev [-]

If you have two audio streams, you can't play them as is on the audio device, you have to mix them together. The same happens with analog speakers as you can't just add two signals together. I believe at one point with Alsa, when an application takes control of the audio device, no one else could play with it. Now Alsa comes with dmix (a digital mixer feature) enabled in its default configuration, so two applications may play how they want. And we have PulseAudio, Jack, and Pipewire on top of Alsa to add more features.

OpenBSD still present raw audio devices, but they have sndio which provides a more helpful interface for applications including resampling (not the best algorithms there, according to them).