百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

ld_preload-sounds

> 编程语言
开源

通过钩接 malloc() 和 read() 生成原始 WAV 输出。

194 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

通过钩接 malloc() 和 read() 生成原始 WAV 输出。

ld_preload sounds

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:

  • writeWav_out (default: none)

Optional:

  • writeWav_noread (default: false) If true, we will not use read() calls to generate data.
  • writeWav_nomalloc (default: false) If true, we will not use malloc() calls to generate data.

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:

  • https://soundcloud.com/glowdon/jingy-compiler-1
  • https://soundcloud.com/glowdon/the-sounds-of-malloc
  • https://soundcloud.com/glowdon/malloc-read-hook-self-compile

Many thanks to @davidfoerster and others for the forks and improvements!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言