News for hackers. Stuff that matters.
Re:AudioMass – free, open source, web-based Audio and Wavefo... by jcelerier on Thursday May 28, 2020 @04:22PM (#23342106)
Will we get jack support back on Linux one day ? :/
Re:AudioMass – free, open source, web-based Audio and Wavefo... by pseudosavant on Thursday May 28, 2020 @05:30PM (#23342924)
The mess with audio servers is one of the main reasons I could never stand Linux as my primary laptop OS. Jack, ALSA, OSS, Pulse, etc. Far too often the answer to my problem was that it didn't work on that specific audio server, or that I needed to compile my own server/kernel/app from source.

Easily, reliably, and quickly playing audio is table stakes for Windows and Mac OS. They've been doing it for years. But instead of improving one or two audio APIs, on Linux it is time for a new audio server that will, but doesn't, solve all of the problems of every predecessor.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by jcelerier on Thursday May 28, 2020 @05:40PM (#23343052)
> Easily, reliably, and quickly playing audio is table stakes for Windows and Mac OS. They've been doing it for years. But instead of improving one or two audio APIs, on Linux it is time for a new audio server that will, but doesn't, solve all of the problems of every predecessor.

I mean, I have currently 5 soundcards on my desktop computer, 1 pro over PCIe, 2 pro over USB, 1 standard HD Audio and 1 output in my screen's HDMI, and I can assure you that even on windows it's definitely not a smooth ride between WASAPI, ASIO, MME, WDMKS... things crash or get stuck routinely, and I sometimes get random loud buzzes or no sound until I reboot. With my band we had tons of issues with a M-Audio card on windows fixating itself on the wrong sampling rate as soon as a desktop music playing was launched (this includes web browsers), entirely preventing playback on Ableton Live for instance.

It's barely better on macOS, e.g. look at that shit: https://github.com/OSSIA/score/issues/778. macOS also sacrifices some low-latency when comparing the same hardware on it versus Linux (with raw ALSA or JACK) and Windows with ASIO.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by zamadatix on Thursday May 28, 2020 @06:28PM (#23343646)
I think the guy with 5 sound cards might be the exception that proves the rule - the conversation was about playing back audio from the browser not which OS starts to fall apart when you need a DAW for your band.
Re:AudioMass – free, open source, web-based Audio and Wavefo... by jcelerier on Friday May 29, 2020 @02:46AM (#23346944)
> the conversation was about playing back audio from the browser

well, no, the web audio API & stuff is explicitly being sold as something that will be equal in capability to other solutions, so definitely things used for pro audio.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by 7952 on Friday May 29, 2020 @07:35AM (#23348743)
Even quite modest normal setups will have several input or output devices. Just on my laptop I have hdmi audio, built in speaker and mic, USB headset, bluetooth headset and remote audio from an RDP session.
Re:AudioMass – free, open source, web-based Audio and Wavefo... by rectang on Thursday May 28, 2020 @06:13PM (#23343484)
What exists as far as open source digital audio interfaces? Meaning only digital i/o — no analog.

It seems like a relatively contained problem to take multiple streams of PCM audio into a computer, locked to word clock. Then the hard, fiddly aspects of analog design can be left to high-quality outboard converters which speak MADI or whatever.

I say "contained" because I don't want to minimize the difficulty of getting such a design right, but it seems like you only have to get it right once.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by nsajko on Thursday May 28, 2020 @06:29PM (#23343664)
Is USB not sufficient?
Re:AudioMass – free, open source, web-based Audio and Wavefo... by rectang on Thursday May 28, 2020 @07:21PM (#23344278)
What I'm looking for is a way to hook up any converter which outputs via a standard digital audio protocol (SPIDF, AES/EBU, ADAT lightpipe, etc.).

Then we don't need a USB driver for each converter! We only need one USB driver, for the digital i/o interface. And we can polish the driver for that one interface until it's actually reliable, instead of relying on the sketchy one-off driver for this year's soon-to-be-obsolete USB audio interface.

ETA: Many such converters (most of them high-end) listed here: https://www.sweetwater.com/c796--AD_DA_Converters

Re:AudioMass – free, open source, web-based Audio and Wavefo... by jcelerier on Friday May 29, 2020 @02:59AM (#23347013)
> SPIDF, AES/EBU, ADAT lightpipe, etc.

If I'm not mistaken the underlying transport protocol is the same for all of those - you can get a coaxial to XLR to get S/PDIF into an AES port or a coaxial to TOSLink converter to get S/PDIF data into an ADAT port.

You can look into the Madiface XT maybe ? https://www.rme-audio.de/hdspe-madi-fx.html or the other RME products which have enough digital I/O to cover a lot of needs

Re:AudioMass – free, open source, web-based Audio and Wavefo... by rectang on Friday May 29, 2020 @10:25AM (#23350291)
In terms of i/o capability, the specs of the Madiface XT would work well for the purposes I'm proposing.

But the point is that I want open source drivers, and open source hardware! I don't want to depend on the health and the priorities of a commercial entity. I want to be able to inspect the driver software and contribute towards perfecting it!

Compared to, say, GPUs, the needs of multichannel digital audio i/o are modest and not changing very much over time.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by nsajko on Friday May 29, 2020 @08:43AM (#23349272)
> If I'm not mistaken the underlying transport protocol

Some quick usage of Wikipedia suggest that you are, sadly, mistaken. ADAT lightpipe seems to use a completely different protocol (more capable?), and while S/PDIF and AES/EBU use quite similar protocols, they differ in impedance and max and min voltages, so I'm guessing that directly electrically connecting the two controllers is a bad idea for both the controller and the data.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by rectang on Friday May 29, 2020 @10:31AM (#23350335)
It doesn't matter for the purposes I'm investigating. So long as we can get the bits out of the wire and into open source software, we can make sense of them.

(Licensing could be a concern though if ADAT lightpipe is proprietary — I'm not clear on that. But then we could just use other open protocols instead.)

Re:AudioMass – free, open source, web-based Audio and Wavefo... by ericlewis on Thursday May 28, 2020 @06:27PM (#23343639)
unrelated, but what do you use 5 sound cards for?
Re:AudioMass – free, open source, web-based Audio and Wavefo... by jcelerier on Friday May 29, 2020 @02:49AM (#23346952)
I only have a "main" soundcard (the PCIe one) - HD audio and HDMI thing are unused 99% of the time, but if you have a computer more recent than 2007 you have them. The two USB soundcards are temporary and here currently because I need to test stuff for the sequencer I'm developing (https://ossia.io)
Re:AudioMass – free, open source, web-based Audio and Wavefo... by nvarsj on Thursday May 28, 2020 @06:46PM (#23343881)
I've had many issues with OS X audio on Catalina - all of my USB audio devices skip and pop on it. It's also a pain to configure, with options bizarrely hidden in the MIDI app.

Windows probably has the best audio stack of them all (battle tested, easy to use UX). In comparison, JACK/pulse are pretty good as well and people use it professionally. Like most things on Linux, the initial UX is a bit of a pain, but once you get past it you get amazing customization, even more so than Windows.

These are the only abstractions I'm aware of on Linux systems - and they are simply built on top of ALSA which is the kernel's core sound API. Almost all desktop environments simply install PulseAudio, and you never have to worry about sound.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by qppo on Thursday May 28, 2020 @06:56PM (#23343992)
How old is your Mac? That issue sounds very strange to me.

CoreAudio is far and away the most impressive and powerful audio API across the board. It's ridiculous how much you can do with it and the abstractions it provides.

It's also been better, faster, and supported lower latency than Windows up until WASAPI came around - you needed to use ASIO on Windows for years. Even today you can't programmatically change the sample rate of a device on Windows, which means that engines like RtAudio have to do resampling under the hood to support basic functionality that's been in CoreAudio.

The only problem with it is that the documentation has evaporated. Which admittedly is a big one.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by nvarsj on Friday May 29, 2020 @05:48AM (#23348085)
> How old is your Mac? That issue sounds very strange to me.

New MBP 16". Apparently it's a problem with the T2 security chip and affects almost all external USB 2.0/3.0 audio devices. Just do a google search for audio drop outs and T2. All digital audio goes through the T2 chip which seems to add latency and these drop outs. I think the only solution at the moment is to use a USB-C native device (but I haven't tested this). If you already have substantial hardware like I do, Catalina is basically unusable (and no fix in sight from Apple...).

Re:AudioMass – free, open source, web-based Audio and Wavefo... by qppo on Friday May 29, 2020 @09:07AM (#23349480)
fwiw I don't think any audio manufacturer (hardware or software) has advised it "ok" to use Catalina, and OS upgrades have been a problem for as long as I've used professional audio tools.

I understand with brand new machines it's a problem, but buying less-than battle tested hardware/software has always been problematic. If you already have substantial hardware, you probably shouldn't be buying a brand new machine and expecting it to just work after a major OS upgrade.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by nvarsj on Friday May 29, 2020 @09:14AM (#23349559)
I shouldn't expect a widely used standard (USB Audio) to work after upgrading my hardware? All the Windows and Linux machines I've had have no problem with USB audio and I don't expect they ever will.
Re:AudioMass – free, open source, web-based Audio and Wavefo... by qppo on Friday May 29, 2020 @09:34AM (#23349793)
I mean I can't even get (all) my USB audio gear to work properly on Linux, at all. For example system settings on Ubuntu Studio misinterpret anything with more than 2 channels as a surround device. But that's OK because the hardware manufacturer has advised they don't support Linux for their proprietary device management software because "widely used standard" like class compliant USB audio is not sufficient for their use case.

And I've been burned enough times by OS upgrades that I know to be cautious. I'm not saying the situation is good, just that it's a shitshow everywhere. I got around a dozen emails from my device and software vendors telling me not to use Catalina, so I'm not yearning to go out and buy a new Mac to run my software on and connect my hardware to it. I'll shit on Macs for that, but under the hood, CoreAudio is much more impressive than anything on Windows or Linux.

Re:AudioMass – free, open source, web-based Audio and Wavefo... by rhizome31 on Friday May 29, 2020 @04:21AM (#23347584)
After a bit of struggle I found that Pulseaudio over Jack adresses my needs. Music production software connects directly to Jack and all other software (browser, video player, etc.) uses Pulseaudio. Also the Cadence GUI really helps to set this up correctly.
Re:AudioMass – free, open source, web-based Audio and Wavefo... by nsajko on Thursday May 28, 2020 @06:35PM (#23343741)
My Chromium plays audio to my external and internal cards fine without Pulseaudio, I have just ALSA and don't know who still uses OSS (no judgement, I just use the default). I think your comment can only have an adverse effect on the conversation if you don't give specific examples.

(Nitpick: Linux has nothing to do with Pulseaudio, it's just the kernel.)

Re:AudioMass – free, open source, web-based Audio and Wavefo... by padenot on Friday May 29, 2020 @04:36AM (#23347676)
It's already enabled and lots of people use it, although it's not compiled in on the mozilla-provided builds (but downstream builders enable it).
Re:AudioMass – free, open source, web-based Audio and Wavefo... by tripzilch on Friday May 29, 2020 @08:29AM (#23349167)
What really? How do I get it?