Nim is a compiled, garbage-collected systems programming language which has an excellent productivity/performance ratio. Nim's design focuses on efficiency, expressiveness, elegance (in the order of priority).
header
as well for the declaration I think
out.wav
.dll
does not have required symbols you might want to build it from source
extern const
global variables, but your original approach with importc: gme_ay_type
and dymlib: "libgme.dll"
seems fine to me