A basic cython wrapper of miniaudio (current version: 0.11.21)
For a more complete and usable python miniaudio wrapper see the cffi-based pyminiaudio project from Irmen de Jong
-
Almost all of the miniaudio header is converted to a cython pxd:
libminiaudio.pxd
-
Working basic test to demonstrate sinewave generation and playback and wave file playback
-
Assumes you have
python3
andcython
installed on your system. -
Run
make
in the root of the project -
Note that the
libminiaudio.a
inminiaudio
is simply created from theminiaudio.c
file compiled into an object file and then archived into a static library. This is done to speed up compilation and linking (which it does considerably). -
run
make test
for the demo