sublive icon indicating copy to clipboard operation
sublive copied to clipboard

Linux support

Open ekg opened this issue 3 years ago • 10 comments

This looks like a great project. What's needed for Linux support?

ekg avatar Oct 23 '21 14:10 ekg

I never really used Linux desktop. What's the situation regarding low latency audio capture ? I'm guessing it's similar to Windows in that really you need an external audio device. Do you use ASIO ?

On Sat, Oct 23, 2021 at 4:47 PM Erik Garrison @.***> wrote:

This looks like a great project. What's needed for Linux support?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/weepy/sublive/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAGNDCJMMRFCOVVYUOVYDUILDJDANCNFSM5GSLCOYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

weepy avatar Oct 24 '21 07:10 weepy

For Linux audio you can run a realtime kernel (easy to install these days via the official repos), use the jack audio connection toolkit, and the latency is probably as good as possible under any OS with the given hardware. If you're interested in low latency recording, I'd suggest testing it.

So sublive would probably need a code path to support Jack. That's not trivial but probably also not impossible.

On Sun, Oct 24, 2021, 09:09 weepy @.***> wrote:

I never really used Linux desktop. What's the situation regarding low latency audio capture ? I'm guessing it's similar to Windows in that really you need an external audio device. Do you use ASIO ?

On Sat, Oct 23, 2021 at 4:47 PM Erik Garrison @.***> wrote:

This looks like a great project. What's needed for Linux support?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/weepy/sublive/issues/2, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAAAGNDCJMMRFCOVVYUOVYDUILDJDANCNFSM5GSLCOYQ

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/weepy/sublive/issues/2#issuecomment-950273355, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDQEJ7OQWZIYIW2CKXCTLUIOWMNANCNFSM5GSLCOYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

ekg avatar Oct 24 '21 07:10 ekg

Would be awesome if you could hook it to PulseAudio for FX and backing tracks. Not sure how that would affect latency tho. I'd love to contribute if I can.

stefanwatt avatar Oct 26 '21 18:10 stefanwatt

A more modern approach is using the new PipeWire audio server on linux which has support for low-latency. I am surprised no one is mentioning PipeWire which is becoming the default on many distros nowadays

Kranzes avatar Oct 27 '21 13:10 Kranzes

How does the typical PC hardware work wrt the latency on audio capture and play back ? On windows it’s almost essential to buy an audio device - is it the same on Linux ?

On Wed, 27 Oct 2021 at 15:05, Ilan Joselevich @.***> wrote:

A more modern approach is using the new PipeWire audio server on linux which has support for low-latency

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/weepy/sublive/issues/2#issuecomment-952907933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAGNDY2MYXHWFJDKK77GTUI72LLANCNFSM5GSLCOYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

weepy avatar Oct 27 '21 14:10 weepy

On windows it’s almost essential to buy an audio device - is it the same on Linux ?

What's the alternative ? Hooking your instrument straight to the onboard soundcard? I would assume thats not gonna work very well. Especially without amplification inbetween. I'm using a 20€ Behringer usb interface which works well enough for me. No reason to bother with the onboard hardware.

Do you use ASIO ?

If you're using PortAudio, shouldn't that just ... work? I just played around with a nodejs app using naudiodon which uses PortAudio, too. Latency was fine. I haven't gotten to try your app yet but I would assume it lets me pick my audio device. So then you wouldnt even have to concern yourself with which one to support or w/e. Perhaps I'm being ignorant on how this is stringed together. If I could look at the code that would be helpful to understand better.

stefanwatt avatar Oct 27 '21 19:10 stefanwatt

Quite a few people use microphones actually which do work ok. It's not necessarily a problem to use external soundcards - I was just interested how people use Linux audio.

Probably would work with PortAudio. The sub-process needs compiling - that's all. Right now I use Xcode on Mac and VS on windows, but it should build just with gcc or similar.

What's your interest of Linux audio ?

weepy avatar Oct 28 '21 09:10 weepy

What's your interest of Linux audio ?

It's not that I'm specifically interested in Linux audio, but rather that I run only Linux on all my machines. I'd love to use the app, but I just don't have any Windows/MacOS machine available (and I don't really want one).

stefanwatt avatar Oct 29 '21 16:10 stefanwatt

Sorry I meant what's your interest in digital music / audio in general ?

weepy avatar Oct 30 '21 10:10 weepy

Mostly using my pc as a virtual amp and playing with backing tracks through the same speakers/headphones

stefanwatt avatar Nov 03 '21 10:11 stefanwatt