A YM2413 emulator written in C