Ayumi is a highly precise emulation of AY-3-8910 and YM2149 sound chips.
Ayumi is written in ANSI C. The sources are available here:
GUI version of Ayumi renderer can be downloaded here (Windows, 32 bit).