ToneDef icon indicating copy to clipboard operation
ToneDef copied to clipboard

Audio doesn't play immediately on button press, and never if released very quickly

Open sudofox opened this issue 3 years ago • 2 comments

See attached video for a demonstration

I haven't looked into the code to see why this might be the case, and I'm not a very good Android developer but without looking at the code my headcanon is that maybe you're creating an audio context on each button press and when I release the button before it can play the tone it destroys that audio context and you don't hear anything as a result

sudofox avatar Nov 01 '22 21:11 sudofox

GitHub is being weird about file uploads right now so

https://media.discordapp.net/attachments/336927725820444674/1037117634828840990/Recording_2022-11-01-17-29-31.mp4

sudofox avatar Nov 01 '22 21:11 sudofox

Here, I compressed the video down enough to embed in the GH issue.

https://user-images.githubusercontent.com/3847441/201979036-b53fc962-2c54-4db9-a875-069bc27578c7.mp4

sudofox avatar Nov 15 '22 16:11 sudofox