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

setFramesPerCallback can cause a crash on close for output tracks #973

Closed
philburk opened this issue Aug 9, 2020 · 0 comments · Fixed by #1011
Closed

setFramesPerCallback can cause a crash on close for output tracks #973

philburk opened this issue Aug 9, 2020 · 0 comments · Fixed by #1011
Assignees
Labels
P1 high priority
Milestone

Comments

@philburk
Copy link
Collaborator

philburk commented Aug 9, 2020

For legacy output tracks, the block size adapter can get deleted while a callback is still in progress.
We should intercept calls to setFramesPerCallback() and do the block size adaption in Oboe instead of AAudio.
There should not be any performance penalty.

This is related to #953
This will also help fix #778

@philburk philburk added the P1 high priority label Aug 9, 2020
@philburk philburk self-assigned this Aug 9, 2020
@philburk philburk added this to the v1.5 milestone Sep 9, 2020
philburk added a commit that referenced this issue Sep 15, 2020
Avoid using callback size adapters in AAudio because of various bugs.
If setFramesPerCallback() called then use a filter stream and do the
block size adaptation in Oboe as part of the data conversion flowgraph.

Fixes #778
Fixes #973
Fixes #983
philburk added a commit that referenced this issue Sep 16, 2020
Avoid using callback size adapters in AAudio because of various bugs.
If setFramesPerCallback() called then use a filter stream and do the
block size adaptation in Oboe as part of the data conversion flowgraph.

Fixes #778
Fixes #973
Fixes #983
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 high priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant