WebAudio._onHide and WebAudio._onShow adjust the volume when the browser visibility changes for Smartphone (especially Android OS).
But, WebAudio._onHide and `WebAudio._onShow have different fade duration.
WebAudio._onHide : 1sec
WebAudio._onShow : 0.5sec
The following operations will cause problems.
Launch game on Android Chrome
Press the home button to hide Chrome (and run WebAudio._onHide )
Open Chrome within 0.5 seconds (= 1sec - 0.5sec)
When this operation is performed, the fade-out time will be longer than the fade-in time.
Then the sound will be muted all the time :cry:
I found a
WebAudio._onVisibilityChange
problem.WebAudio._onHide
andWebAudio._onShow
adjust the volume when the browser visibility changes for Smartphone (especially Android OS). But,WebAudio._onHide
and `WebAudio._onShow have different fade duration.The following operations will cause problems.
WebAudio._onHide
)When this operation is performed, the fade-out time will be longer than the fade-in time. Then the sound will be muted all the time :cry: