Skip to content

Stutters #15

@clemmyn23

Description

@clemmyn23

RE: kbz's comment


huen6uu

adc435

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions