You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
megalanthus opened this issue
Oct 8, 2023
· 5 comments
Labels
bugSomething is not working as expectedhtml5Issue related to the HTML5 platforminputIssues related to user inputmore infoThe issue is lacking required informationsoundIssues related to sound handling
I believe the input has to be fully processed by the engine AND the browser before you are allowed to play sounds.
What if you do it on action.released? The only other option is to add a timer, or take a look at defos.on_interaction() / defos.on_click() (https://github.com/subsoap/defos)
britzl
added
bug
Something is not working as expected
more info
The issue is lacking required information
input
Issues related to user input
sound
Issues related to sound handling
html5
Issue related to the HTML5 platform
labels
Oct 9, 2023
I believe the input has to be fully processed by the engine AND the browser before you are allowed to play sounds.
What if you do it on action.released? The only other option is to add a timer, or take a look at defos.on_interaction() / defos.on_click() (https://github.com/subsoap/defos)
The thing is that the sound is not played not only that was launched first, but also any other sounds! Absolutely everything in the entire project! Another question arises, why does this not happen on a desktop PC?
Versions 1.5 and below do not have this problem. Yes, there is a click if the sound is started before the user takes action, but the sound is guaranteed to work!
I tried playing the sound after action.released and everything works as expected. But there are still some doubts about whether in this case it is guaranteed to work for everyone and everywhere?
bugSomething is not working as expectedhtml5Issue related to the HTML5 platforminputIssues related to user inputmore infoThe issue is lacking required informationsoundIssues related to sound handling
Expected behaviour
When starting a sound, the sound is not played on a mobile device on the HTML platform.
Actual behaviour
If the sound starts playing after a click and a pause of 0.5 seconds, then it plays normally.
Steps to reproduce
Test project attached
sound_bug.zip
Note
console:
Workaround:
console:
The text was updated successfully, but these errors were encountered: