I am not original author of sndfile patch. I found it
http://gareus.org/oss/spicesound
Original patch didn't work so I fixed it.
Changes except finding the place where to put hunks are:
1) in commands.c:
{ "sndprint", com_sndprint, FALSE, FALSE, TRUE,
+ { 040000, 040000, 040000, 040000 }, E_BEGINNING, 1, LOTS,
+ arg_print,
+ "[col] expr ... : Print vector values." }
removed the TRUE.
2) forget fteext.h hunk.
I am not good with with CVS. So forgive me. This tar archive has new
files and soundfile.patch which is up to date patch ( hopefully current
svn tree.) Also copy of the original ng-spice-rework-17-snd-v3.2.diff
patch file is provided.
Hannu Vuolasaho
Support for audio I/O
Thank you for this patch. It would be nice to see this functionality in ngspice.
There is a new git branch wav-audio available, using a modified version of this patch onto ngspice-32+.
The current setup has only been roughly tested on MSVC2019 forWindows 10.
Please have a look at README.wavsim.
Last edit: Holger Vogt 2020-08-01
You may download a ngspice for Windows executable, made from the wav-audio branch, with all necessary libraries and some examples added.
See http://ngspice.sourceforge.net/download.html#wav