Skip to content

Generates raw WAV output by hooking malloc() and read().

Notifications You must be signed in to change notification settings

davidfoerster/ld_preload-sounds

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To build, run:

gcc -g -fPIC -shared -Wl,--no-as-needed -ldl -o writeWav.so writeWav.c

Then you can LD_PRELOAD it and capture the output, either into a file or pipe it into aplay:

LD_PRELOAD=./writeWav.so gcc -g -fPIC -ldl -shared -Wl,--no-as-needed -o writeWav2.so writeWav.c | aplay --file-type raw --rate=44100 --channels=1 --format=S16

Listen here:

About

Generates raw WAV output by hooking malloc() and read().

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.7%
  • Shell 8.3%