portaudio-examples
Required Software
Apache Ant
- Download and extract Apache Ant https://ant.apache.org.
- Ensure that Apache Ant is in your PATH.
- 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
- Download and extract CMake https://cmake.org.
- Ensure that CMake is in your PATH.
PortAudio support
- Download and unzip http://www.portaudio.com/download.html
- 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
- 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
- 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
ant
Run sample application
- On Linux and macOS
./Artifacts/portaudio-examples
- On Windows
.\Artifacts\portaudio-examples.exe