-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test how the interpreter handles loop marks in MODs #1
Comments
I've been going through ooooold issues in Gargoyle, and came across this reference. I think there are a couple things to deal with here. First, Blorb is underspecified when it comes to MOD files and looping. It doesn't take into account the fact that MODs can loop back and effectively play for an infinite amount of time. Second, the request here isn't clear as to what the expectation is. Is the expectation that if My feeling is that you shouldn't use MODs with looping, or at least, don't expect that looping to be honored. No other formats have this optional looping (the V3 looping chunk is an oddity that doesn't really count here). Moreover, if Basically, it's a huge can of worms, especially given how complex MOD files can be. Unless there's a really good reason not to, I plan on closing the Gargoyle issue as WONTFIX with the rationale that MOD looping is out of the scope of IF games. And if you really want this sort of behavior, it's possible to embed a couple Vorbis files (or if you're feeling adventurous, you can pull apart the MOD file in a tracker), one of which is the first part of the song, and the second is the "to be looped" part. Set a event handler for when the first part ends, then start up the second in an infinite loop. |
Agreed that it is not worth the trouble to implement. It would be nice to have an API for looping sounds properly, though. The current system is pretty rough. As I understand it, AIFF and Ogg files may also contain loop marks. On the other hand, there doesn't seem to be a huge interest in making Glulx games with sound anyway. |
I wasn't even aware of AIFF and Ogg looping behaviors! Previously I sort of argued that since MOD stood alone, its looping shouldn't be honored. Now I'll make the opposite argument and say that since no other formats with looping are supported, MOD shouldn't be either. I agree this is really an API/specification issue. Unless Blorb/Glk are updated to clarify looping, I'll treat all files as not-internally-looping and continue to ignore them. Thanks for the input! |
See garglk/garglk#160
We would need a good short sample of a MOD with a loop mark, and perhaps an OGG of how it is supposed to sound, for comparison.
The text was updated successfully, but these errors were encountered: