Giter Site home page Giter Site logo

Comments (4)

meshula avatar meshula commented on May 22, 2024

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.

from labsound.

johnwbyrd avatar johnwbyrd commented on May 22, 2024

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.

from labsound.

ddiakopoulos avatar ddiakopoulos commented on May 22, 2024

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/

from labsound.

meshula avatar meshula commented on May 22, 2024

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.

from labsound.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.