A downloadable game

Download NowName your own price

A while ago I come across the following messages:

I've spent today going through them and have it down to just the one, now. That is that upon opening the app, the music begins and plays for less than a second before stopping. The sound effects still play, but the music is silent. If I go to my options page and turn the music off and back on, it plays. It also starts playing if I navigate off the app and then back on.

Whenever I use AaMob I get sound distortion when launching the game (the game's music in the main menu get distorted for 2-3 seconds) and in the console, I get the below text... Any way to fix? The final item before sending to Apple.

17:47:58.428863+0100 BBPlayer[4360:1500897] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)

What's the solution?

So I've decided to dig into it and come up with the solution, here it is... A new BB Asset that can be placed in the UI Screens and that requires an Audio Button both can be placed outside the UI view and that's it.

How does it work?
This will pause and resume the sounds by triggering the audio Button based on what delay value you set, default is 0.01

Enjoy and let me know if you find any issues.


Stay safe! Have fun!
Vlad

Download

Download NowName your own price

Click download now to get access to the following files:

Audio Button Trigger Fix.bbasset 1.6 kB

Leave a comment

Log in with itch.io to leave a comment.