You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines

  1. RtAudio - a set of C++ classes which 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.
  2. By Gary P. Scavone, 2001-2017.
  3. To configure and compile (on Unix systems and MinGW):
  4. 1. Unpack the RtAudio distribution (tar -xzf rtaudio-x.x.tar.gz).
  5. 2. From within the directory containing this file, run configure:
  6. ./configure
  7. If you checked out the code from git, just run "".
  8. 3. Typing "make" will compile static and shared libraries, as well as the example programs in the "tests/" directory.
  9. A few options can be passed to configure (or the script), including:
  10. --enable-debug = enable various debug output
  11. --with-alsa = choose native ALSA API support (linux only)
  12. --with-pulse = choose native PulseAudio API support (linux only)
  13. --with-oss = choose OSS API support (unixes)
  14. --with-jack = choose JACK server support (linux or Macintosh OS-X)
  15. --with-core = choose CoreAudio API support (Macintosh OS-X only)
  16. --with-asio = choose ASIO API support (windows only)
  17. --with-wasapi = choose Windows Audio System API support (windows only)
  18. --with-ds = choose DirectSound API support (windows only)
  19. Typing "./configure --help" will display all the available options. Note that you can provide more than one "--with-" flag to the configure script to enable multiple API support.
  20. If you wish to use a different compiler than that selected by configure, specify that compiler in the command line (e.g. to use CC):
  21. ./configure CXX=CC
  23. CMake support is provided via the CMakeLists.txt files. Assuming you have CMake installed on your system, a typical usage would involve the following steps (from within the parent distribution directory):
  24. mkdir _build_
  25. cd _build_
  26. cmake <path to CMakeLists.txt usually two dots> <options> e.g. cmake .. -DAUDIO_WINDOWS_WASAPI=ON
  27. WINDOWS:
  28. All Windows audio APIs in RtAudio compile with either the MinGW compiler (tested with latest tdm64-gcc-4.8.1) or MS Visual Studio.
  29. Visual C++ 6.0 project files (very old) are included for the test programs in the /tests/Windows/ directory. These projects compile API support for ASIO, WASAPI and DirectSound.
  30. LINUX OSS:
  31. The OSS API support in RtAudio has not been tested for many years. I'm not even sure there are OSS drivers supporting recent linux kernels. In all likelihood, the OSS API code in RtAudio will disappear within the next year or two (if you don't want this to happen, let me know).