openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.91k stars 2.55k forks source link

ofSoundStream changed to use PortAudio #5489

Open llynull opened 7 years ago

llynull commented 7 years ago

RtAudio defaults to ASIO on Windows machines and there is currently no way to change its backend. This means for most machines currently - sound will not play and ASIO4ALL does not always work. This isn't very cross-platform friendly.

PortAudio has a lot more features and support and is currently far more convenient when developing applications that require beat syncing and timing due to its clock functions and options to change backend/device. This will keep openFrameworks from falling behind in terms of audio support.

When using the API directly, RtAudio is inconvenient and the documentation is low.

Also I'm unable to get ofxPASoundStream to work. Why was it removed from the core if there was an initial change to switch to PortAudio in the future anyways?

kritzikratzi commented 3 years ago

ofSoundStreamSettings has an API option, which let's you choose between wasapi,asio and others. i do agree however, asio default is completely outdated and changing it to wasapi makes sense.

ofTheo commented 3 years ago

happy if you want to do a PR @kritzikratzi
I would just make sure it only applies for Windows. Thanks!