portaudio-examples

Required Software

Apache Ant

  1. Download and extract Apache Ant https://ant.apache.org.
    • Ensure that Apache Ant is in your PATH.
  2. Install Apache Contrib (https://sourceforge.net/projects/ant-contrib/files/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.zip/download)
    • Download, unzip and copy ant-contrib*.jar to your Apache Ant installation's lib directory.

CMake

  1. Download and extract CMake https://cmake.org.
    • Ensure that CMake is in your PATH.

PortAudio support

  1. Download and unzip http://www.portaudio.com/download.html
  2. On macOS cd build && cmake .. && cmake --build .
    • You'll end up with a dynamic and static library. E.g. libportaudio.dylib and libportaudio_static.a
  3. On Linux cd build && cmake .. && cmake --build .
    • You'll end up with a dynamic and static library. E.g. libportaudio.so and libportaudio_static.a
  4. On Windows cd build && cmake .. -G "Visual Studio 14 2015" && cmake --build . --config Release
    • You'll end up with a dynamic and static library. E.g. portaudio_x86.{dll|lib} and portaudio_static_x86.lib

Build sample application

  1. ant

Run sample application

  1. On Linux and macOS ./Artifacts/portaudio-examples
  2. On Windows .\Artifacts\portaudio-examples.exe