sudo apt update

sudo apt install libasound-dev wget cmake libjack-dev

Download The rtAudio Software:

wget http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-5.1.0.tar.gz

After Downloading It, We Need To Unpack It:

tar -zxvf rtaudio-5.1.0.tar.gz

Once Unpacked Let's cd Into The Dir:

cd rtaudio-5.1.0

Let's Make A Build Folder And cd Into It:

mkdir build && cd build

To Make And Install rtAudio:
Run Each Line One At A Time:

cmake ../
make
sudo make install

To Test rtAudio:

cd tests

Run The Following Command:
Control c, Cancels The Sound:

./playsaw 2 48000