Is there a method of getting the system/master volume?
In my particular use case, I have a game where there are mini cutscenes that play, which are just elaborate coroutines. In them, there might be a sound that plays, which - when finished - triggers the next thing to happen.
However, if the player has volume off, this feels weird because it appears as though the game just pauses for a couple seconds before continuing.
I'd like to be able to skip playing the audio all-together if the system/master volume is off.
Otherwise I'm implementing a "closed captioning" system for audio sounds just to show something like "[door unlocks]" while the sound it playing in the background.
..Though I can think of ways to make it more complicated. Like, should sound player finished notifications call back immediately if the volume is set to zero? Probably not, I can imagine that breaking existing code..
In 3.1 we've added playdate.getSystemVolume() and pd->system->getVolume(), both of which return a value in the range 0-1. We're push the (hopefully) last beta tomorrow, then if all goes well we'll release it when James gets back into the office in a couple weeks.