Was on the forums yesterday trying to look around and figure out what I was doing wrong with my mute/unmute buttons within a game that I am developing. Found some pretty good things to try but never really landed or gained a clear understanding on my issue.
In most of the game myself and my team develops we are using a simple audio toggle. Typically I prefer to just mute/unmute sounds as opposed to pausing them. This works great till we start testing on iOS platforms like iPad and iPhone. The game that I was having trouble on had a lot of time sensitive sounds and pausing would have made things a bit strange. Stopping sounds would have presented less issue but would have still wreaked havoc on certain screens.
That being said I figured out that if I put my audio files in the "Sounds" folder then the mute/unmute feature seemed to work great while audio that was left in the "Music" folder did not follow suit. The quick fix is obviously to move all the sounds into the sounds folder, but I know that it is NOT a great final approach.
I tried to work with playback rate as seen in the following forum post but was unsuccessful at getting it to work properly...
How to properly set a mute button?
I also read and learned some great stuff about how to pause and then resume at the proper spot in the music as seen in the capx included in this post...
Audio Mute and Volume issues on mobile
However, that was not quite what I was looking for either in that I needed the my time sensitive sounds to keep playing while they were being muted so that it would line up with the timing of the game in case the player decided to turn the sound back on in the middle of play or a round.
I have included the capx file of the basic problem below. If anyone knows how to get the standard mute/unmute to work out of the box on files within the music folder for the iOS platform that would be great and insight would be much appreciate.
Audio Mute Test CAPX
There is a huge chance that I just have something bone headed set up here and external eyes would benefit me greatly.
Thanks for the time! I look forward to any replies