Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RtAudio vs PortAudio (feature request) #80

Closed
johnwbyrd opened this issue Mar 26, 2018 · 4 comments
Closed

RtAudio vs PortAudio (feature request) #80

johnwbyrd opened this issue Mar 26, 2018 · 4 comments

Comments

@johnwbyrd
Copy link

johnwbyrd commented Mar 26, 2018

What was the thinking on going with RtAudio vs. PortAudio as a base layer?

@johnwbyrd johnwbyrd changed the title RtAudio vs PortAudio RtAudio vs PortAudio (feature request) Mar 26, 2018
@meshula
Copy link
Member

meshula commented Mar 26, 2018

That's a great question. PortAudio and RtAudio both have much to recommend them. The original implementation was created with platforms in mind (Windows, macOS, Linux, etc.) RtAudio arrived as a way to flesh out the Windows implementation quickly, but it's clearly useful cross platform. At this point, I'd be inclined to say the way forward should be to organize the backends according to implementation, not platform. A nice approach would be a cmake variable that specifies which backend a user prefers.

I'd be open to PRs implementing new backends, such as PortAudio.

@johnwbyrd
Copy link
Author

johnwbyrd commented Mar 28, 2018

kthx, at some point I'll take a look at the complexity of a new backend implementation. I concur that if we use RtAudio or PortAudio or the like, the per-platform differences should ideally be kept to a minimum.

@ddiakopoulos
Copy link
Member

I have one opinion on this: PortAudio is considerably harder to build, whereas RtAudio is just a few header files and a single cpp. There's also libsoundio which is new on the scene: http://libsound.io/

@meshula
Copy link
Member

meshula commented Sep 10, 2018

It makes more sense to organize by backend than platform overall, as there are many viable backends per platform. Linux users might like to choose between rtaudio, asound, alsa, or whatever for example.

As of this commit (7357ca5) there is a backends directory, currently populated with linux, windows, and darwin (macos/ios). There could easily be an RtAudio backend directory, or a PortAudio backend.

If a backend combo needs to be specially made, then a new triple-named directory (e.g. linux-rtaudio-asound) should be created rather than trying to wedge many implementations into a single linux directory.

@meshula meshula closed this as completed Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants