bbbradsmith / nsfplay

Nintendo NES sound file NSF music player
https://bbbradsmith.github.io/nsfplay/
280 stars 45 forks source link

xgm: add infinite mode to never apply fade-out #35

Closed jprjr closed 4 years ago

bbbradsmith commented 4 years ago

Is there a functioning component to this? I don't see anything using GetInfinite or SetInfinite. I don't mind the idea, but I don't want to take a pull request that only adds dead code. (Feel free to reopen if that's not the case.)

jprjr commented 4 years ago

There's a couple of use cases - in my case, I'm working on integrating xgm as a plugin for Music Player Daemon to play back NSF, but want to use my own time-keeping and fade routines, so disabling the automatic fade-out is useful.

Another idea (admittedly, I'm nowhere near close to implementing) is being able to use xgm in a game for playing level music. I'd want to be able to trigger a fade-out on an event occurring rather than a specific time.