I've tried specifying the channel but didnt change anything.
My sound is definetly working, the volume on the sfx's notes are higher than 0 and I can hear the statup bleeps from Pico-8.
BUT THE MUSIC DOESNT PLAY
@VUltraBOT I think the program is finishing after _init, that's why the music stops playing. If you add _update or _draw it should continue.
If I had to take a guess, they have their music on index 0 and not 1. Can't really tell without the cart data though (paste your .p8.png here)
edit: The semicolon isn't cringe. It's a feature of Lua, so if you feel like using it, then it's fine. During compilation, it likely adds a near-zero negligible amount of time to compile the additional semicolon, and that's the worst case scenario.
@VUltraBOT
Ah I didn't know that actually. I had assumed that the music module would continue playing even after program execution ends. After running your program, you could run music(1)
in the commandline and it would play music just fine. I guess when it runs a cart it sort of sandboxes the resources.
[Please log in to post a comment]