@zep
I'm pretty sure this is a bug... shouldn't stat(24) return -1 when no music is playing (like all the other music/sfx stats which use -1 to indicate nothing is playing)? Instead it returns 0, which makes it impossible to differentiate from when music pattern 0 is actually playing :O
(There is technically a workaround, i.e. other stats can be used to check the current note numbers on the channels, which return -1 when nothing is playing, which I am using for now, but this really feels like it should not be necessary... :)
P.S.
Thank you for adding those new music pattern-related stat numbers recently! They are very useful and I am getting a lot of benefit from them in my current project :D
I just bumped into this one now myself. It'd be great if stat(24) returned -1 when no music is playing!
Fixed in 0.1.12:
Changed: stat 24..26 return -1 when no music is playing |
[Please log in to post a comment]