How To Install librtaudio5a on Debian 9

In this tutorial we learn how to install librtaudio5a on Debian 9. librtaudio5a is C++ library for realtime audio input/ouput

Introduction

In this tutorial we learn how to install librtaudio5a on Debian 9.

What is librtaudio5a

librtaudio5a is:

RtAudio is a set of C++ classes that provides a common API (Application Programming Interface) for realtime audio input/output across Linux (native ALSA, JACK, and OSS), Macintosh OS X, SGI, and Windows (DirectSound and ASIO) operating systems. RtAudio significantly simplifies the process of interacting with computer audio hardware. It was designed with the following objectives:

  • object-oriented C++ design
  • simple, common API across all supported platforms
  • only one source and two header files for easy inclusion in programming projects
  • allow simultaneous multi-api support
  • support dynamic connection of devices
  • provide extensive audio device parameter control
  • allow audio device capability probing
  • automatic internal conversion for data format, channel number compensation, (de)interleaving, and byte-swapping

RtAudio incorporates the concept of audio streams, which represent audio output (playback) and/or input (recording). Available audio devices and their capabilities can be enumerated and then specified when opening a stream.

This package provides the shared library.

There are three methods to install librtaudio5a on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install librtaudio5a Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install librtaudio5a using apt-get by running the following command:

sudo apt-get -y install librtaudio5a

Install librtaudio5a Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librtaudio5a using apt by running the following command:

sudo apt -y install librtaudio5a

Install librtaudio5a Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install librtaudio5a using aptitude by running the following command:

sudo aptitude -y install librtaudio5a

How To Uninstall librtaudio5a on Debian 9

To uninstall only the librtaudio5a package we can use the following command:

sudo apt-get remove librtaudio5a

Uninstall librtaudio5a And Its Dependencies

To uninstall librtaudio5a and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove librtaudio5a

Remove librtaudio5a Configurations and Data

To remove librtaudio5a configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge librtaudio5a

Remove librtaudio5a configuration, data, and all of its dependencies

We can use the following command to remove librtaudio5a configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge librtaudio5a

Dependencies

librtaudio5a have the following dependencies:

References

Summary

In this tutorial we learn how to install librtaudio5a package on Debian 9 using different package management tools: apt, apt-get and aptitude.