pointfreeco / isowords

Open source game built in SwiftUI and the Composable Architecture.
https://www.isowords.xyz
Other
2.7k stars 222 forks source link

isowords is running audio and using battery even when the isowords audio settings have turned audio off. #154

Open GeekAndDad opened 2 years ago

GeekAndDad commented 2 years ago

Describe the bug Audio is turned off in isowords settings. Battery in System Settings is showing significant percentage of battery drain and Audio as the load.

To reproduce Turn audio off, run isowords for a couple of games, go to battery (an hour later) and look at the description.

Expected behavior If Audio is turned off isowords should be spending zero cpu cycles playing audio. Quick look at the code makes it seem like there aren't any checks for sound off and it just plays the audio with zero volume. You'd hope iOS would be smart about that, but it seems it may not be.

Screenshots/video IMG_4851

IMG_4850

Environment

stephencelis commented 2 years ago

Thanks for the report!

sk409 commented 2 years ago

@stephencelis I would like to work on this issue. Could you assign this to me?