This repository contains a personal fork of libsoundio, where I added some minor modifications/workarounds for the Unity plugin.
mkdir build
cd build
cmake -D CMAKE_OSX_ARCHITECTURES="arm64;x86_64" -D CMAKE_BUILD_TYPE=Release ..
make
cp libsoundio.2.0.0.dylib soundio.bundle