RtAudio-rs
Safe Rust wrapper and bindings for RtAudio (version 6).
Usage Example
use ;
Prerequisites
CMake
is required on all platforms.
Linux
apt install cmake pkg-config libasound2-dev libpulse-dev
If the jack_linux
feature is enabled, then also install the jack development headers:
apt install libjack-dev
MacOS
Install CMake: Option 1
Download at https://cmake.org/.
Install CMake: Option 2
Install with Homebrew:
brew install cmake
Windows
Install CMake
Download at https://cmake.org/.
Features
By default, Jack on Linux and ASIO on Windows is disabled. You can enable them with the jack_linux
and asio
features.
rtaudio = { version = "0.3.2", features = ["jack_linux", "asio"] }
Notes
Bindings were made from the official C header. No bindings to the C++ interface are provided.
This currently builds a static library from source on all platforms. Once RtAudio version 6 is commonly available in Linux package managers I might change it to link to the dynamic library on Linux.
I haven't figured out how to get Jack on MacOS to work yet. If you know how to install and link the Jack libraries on MacOS, please let me know.
I haven't thoroughly tested every API on every platform yet. If you run into any bugs or issues with building, please create an issue.