-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
RE: kbz's comment
I think I found it. Need a bit more testing though.
So basically every time the tap sound plays the SoundPool code runs through the permission check in appOps to see if sound playback is allowed. And for whatever reason one of the checks throws an error (which happens quite often as evident in the stutters) it defaults to false (ie. yolo we'll play the sound anyway) while throwing an expensive error.
This is platform specific to Android since Sound.java implements AndroidSound which uses SoundPool.
Proposed solution: implement a custom play() method and check appops permission on app load.
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels