golang portaudio bindings.
fork of gordonklaus/portaudio.
- PortAudio included.
- Static library.
- Deleted some examples, examples replaced with tests.
- Python 3.11 and above (see bootstrap.py).
- CMake 3.1.0 and above (see CMakeLists.txt).
- TDM-GCC.
- (not sure) C++ Build Tools and other VS C++ things.
- gcc.
- !!! OTHER PLATFORMS NOT TESTED YET !!.
You can include this repository in your project by simply running git clone, or through git submodules. Then use go workspace.
In your project:
git submodule add /~https://github.com/oklookat/portaudio
git submodule update --init --recursive
go.work file in your project:
go 1.21.4
use .
use ./portaudio
This project cannot be used via go get, because portaudio has to be built via cmake.
All work is done through the bootstrap.py script. You must run this script before debugging/building your project. For example, in tasks.json if you use VS Code.
bootstrap.py takes the --release argument. In that case, the build will be done without any debug stuff.
Also, by editing this script you can customize CMake flags for portaudio build.
You can update portaudio using git submodules. If something changes in portaudio (functions added, removed), you will have to update the bindings manually.
Also cmake options and other such things may change in portaudio. Then you will have to update bootstrap.py as well.