Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Modular NSF library for NES music

1 replies · 1,485 views · Started 04 December 2005

A while back, someone mentioned adding support for NSF (NES) game music files. I put together a simple NSF player module that uses SDL for audio output, though it could easily be changed to use something else. There's a C interface so you can use it from normal C code. Support for GBS, SPC, VGM, and GYM can also be enabled if you want. It's based on my Game_Music_Emu library. The source code and demo is here:

Nsf_Player-0.2.7.zip

Let me know if you encounter any problems or are interested in this and want more features (like fading songs out).


#include "gme/Music_Player.h"

game_music_load( "zelda.nsf" );
game_music_start( 1 ); // start track 1
...
game_music_stop();