When setting Playing to true in the pointerDown event, the sound Stops (The sound was actually playing)
Even when using a conditional to only play the sound if it's not playing, Setting playing param to true will stop the sound.
SDK:
[ ] SDK6
[X] SDK7
Sdk Version: 7.3.23
Tool:
[ ] Editor
[X] CLI
CLI Version: 3.18.0
Node Version:18.18.2
Steps to reproduce:
Create an AudioSource
Use a pointer Down to set the playing param to true
If you click again before the audio stops it will stop instead of setting to true
Expected behaviour:
I was expecting to play the sound only if it`s stopped, otherwise ignore it and keep playing or at least reset when setting playinf to true but not a toggle.
Im working with animation clips and this issue is really bad because i want the user to hear the whole audio before playing again, without the ability to stop it and I cant find a way to do that
Issue Description:
When setting Playing to true in the pointerDown event, the sound Stops (The sound was actually playing) Even when using a conditional to only play the sound if it's not playing, Setting playing param to true will stop the sound.
SDK:
Tool:
Steps to reproduce:
Expected behaviour:
I was expecting to play the sound only if it`s stopped, otherwise ignore it and keep playing or at least reset when setting playinf to true but not a toggle.
Current behaviour:
The playing state toogles if I set it to true
Reproduction rate:
Always
Code Snippets:
Platforms:
Browser:
Environment:
Evidence:
https://github.com/decentraland/sdk/assets/98880594/94a87905-0e0e-45e7-b928-bb66229427e3
Additional Notes:
Im working with animation clips and this issue is really bad because i want the user to hear the whole audio before playing again, without the ability to stop it and I cant find a way to do that