weepy / sublive

Public Repo for Sublive for bug reports and feedback
37 stars 1 forks source link

Linux support #2

Open ekg opened 2 years ago

ekg commented 2 years ago

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

weepy commented 2 years ago

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.

ekg commented 2 years ago

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.

stefanwatt commented 2 years ago

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.

Kranzes commented 2 years ago

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

weepy commented 2 years ago

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.

stefanwatt commented 2 years ago

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.

weepy commented 2 years ago

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 ?

stefanwatt commented 2 years ago

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).

weepy commented 2 years ago

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

stefanwatt commented 2 years ago

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