thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 317 forks source link

Default API #434

Open nemanjan00 opened 2 months ago

nemanjan00 commented 2 months ago

Hello,

I am encountering a problem with choppy audio, while using most of SDR apps using RTaudio. (Pipewire, with all APIs installed)

Investigating further has lead me to this:

https://github.com/AlexandreRouma/SDRPlusPlus/discussions/112

Looks like people are disabling ALSA API as a fix for this.

Could I suggest picking more modern APIs over ALSA, as a quick, temporary fix?

Edit:

Looking at the code, it seems like all that needs to be changed is order right here:

https://github.com/thestk/rtaudio/blob/master/RtAudio.cpp#L455