The official Portaudio Toolbox v0.2 is only for Scilab 5.4.0 and is not compatible with Scilab 6.1.0. The old source code is also cannot be built with the latest Microsoft Visual Studio. Therefore, I reverse engineered and modified it a bit to make it buildable and loadable by Scilab 6.1.0. This is the modified source.
Run builder.sce
with Scilab.
Zip the built folder and install it normally using atomsInstall("/path/to/zipfile")
.
In case you want to modify the official source code to see for yourself, here are the steps that I did:
- Download the official source and built binaries from this link.
- In
builder.sce
line 20: replaceif v(2) < 4 then
withif v(1) <= 5 && v(2) < 4 then
, also fix a string at line 28. - In some
src/c
files: replace uppercaseMALLOC
andFREE
with lowercasemalloc
andfree
. - Also in some
src/c
files: remove#include "strdup_windows.h"
. - In
etc/portaudio_toolbox.start
line 12: replaceportaudio.start
withportaudio_toolbox.start
. - In all
sci_gateway/c
files: addvoid* pvApiCtx
as a 2nd parameter to all functions' declaration. - Copy
DESCRIPTION
file from official source archive to modified source. - Run
builder.sce
.