Generates raw WAV output by hooking malloc() and read().
Generates raw WAV output by hooking malloc() and read().
Generates WAV output by hooking malloc() and read(). Adding support for other calls should be pretty easy, pull-requests are much welcomed!
Also, it should go without saying... but I will say it anyway... this is experimental. Hooking memory and read calls could break things horribly, I accidentally blew out a buch of my vim configs at one point while first starting to write this becuase I thought it would be neat to hook the editor while making more changes, and yeah... I broke it. So consider yourself warned... I do not wish to be responsible if you break your system, lose files, etc... Be sure you have backups of any files touched by the programs you're running through this, you have backups anyway, don't you? Don't you?
To build, run make, you know the drill. ;)
To try it out, run the writeWav script with the program and parameters you with to experiment with.
A wav file will be created in the current directory with a name of the current timestamp if you run with writeWav.
Otherwise, if you wish, you may LD_PRELOAD writeWav.so manually. If you preload manually, however, there are some environment vars that you should be aware of:
Required:
Optional:
If you want to tweak the output, you may do so in writeWav.c near the top:
…You can listen to some examples of the output here:
Many thanks to @davidfoerster and others for the forks and improvements!
No open issues yet, or sync has not completed.