LIJI32 / SameBoy

Game Boy and Game Boy Color emulator written in C
https://sameboy.github.io/
Other
1.65k stars 207 forks source link

[Feature Request] GBS File Support #229

Closed jprjr closed 3 years ago

jprjr commented 4 years ago

I'm a big fan of chiptunes and think SameBoy has some of the best sound.

My feature request is for SameBoy to expose a C interface for loading a GBS file (from memory and/or from a file) and rendering audio samples. Doesn't necessarily need a GUI, my goal is to integrate SameBoy into music players (foobar2000, MPD, etc) as a chiptune decoder.

Thank you so much for the emulator!!! It's my new favorite way to play games.

lpla commented 4 years ago

For now, you can use the .gb output file from GBS2GB in Sameboy. Windows only, but should work.

Source: http://www.angelfire.com/nc/ugetab/

jprjr commented 3 years ago

That doesn't really allow the goal of integrating with music players, though.

Tried doing some of it myself but it is way above my head. I think I managed to load up the ROM data manually and I can get it to run a few CPU cycles but I seem to start hitting illegal instructions pretty quickly. I think there's some kind of setup I need to do with registers? It's really not clear from the GBS spec.

LIJI32 commented 3 years ago

I could swear I replied to this issue before. I can add a GBS API so it can be used as a library. Can't give an ETA on it though.

jprjr commented 3 years ago

Closing this out since it's now implemented in v0.14.3