Home   Class/Enum List   File List   Compound Members   C interface  

The RtAudio Home Page

RtAudio is a set of C++ classes that provide a common API (Application Programming Interface) for realtime audio input/output across Linux, Macintosh OS-X and Windows 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 one header file 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. Where applicable, multiple API support can be compiled and a particular API specified when creating an RtAudio instance. See the API Notes section for information specific to each of the supported audio APIs.

Latest Updates (Version 5.2.0)

Changes in this release include:

  • update to audioprobe.cpp to list devices for all APIs
  • miscellaneous build system updates
  • PulseAudio device detection fixes
  • various WASAPI updates (thanks to Marcus Tomlinson)
  • see git history for complete list of changes

Download

Latest Release (15 November 2021): Version 5.2.0

Documentation Links

  1. Error Handling
  2. Probing Device Capabilities
  3. Device Settings
  4. Playback
  5. Recording
  6. Duplex Mode
  7. Using Simultaneous Multiple APIs
  8. Debugging & Compiling
  9. API Notes
  10. Acknowledgements
  11. License
  12. RtAudio on GitHub

©2001-2021 Gary P. Scavone, McGill University. All Rights Reserved.
Maintained by Gary P. Scavone.