Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrency problems #6

Open
farble1670 opened this issue Mar 5, 2021 · 0 comments
Open

Concurrency problems #6

farble1670 opened this issue Mar 5, 2021 · 0 comments

Comments

@farble1670
Copy link

Player state is modified both on the main thread and the background player thread. A specific example where this is a problem: calling #play ends up starting a thread that modifies the audioTrack instance field, and calling #stop modifies the same instance field on whatever thread it's called from (probably the main thread). This will result in NPEs if you play / stop with the correct timing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant