Skip to content

Conversation

@kinetiknz
Copy link
Collaborator

This is working towards fixing the issues showing up in BMO 1988591 and related bugs. There's a few more fixes in the pipeline, but the set in this PR are small and quick to review.

It's possible for the state_thread to run shutdown_with_error before the data
callback has returned.  stream_destroy ensures correct destruction anyway.
Per
https://developer.android.com/ndk/reference/group/audio#group___audio_1ga60d7800abe432ad1e3404243c8407e1c,
requestPause is not supported for input streams and will return
ERROR_UNIMPLEMENTED.  Use requestStop instead and adjust state transition
expectations.
@kinetiknz kinetiknz requested review from Pehrsons and padenot January 21, 2026 08:58
@kinetiknz kinetiknz self-assigned this Jan 21, 2026
Copy link
Contributor

@Pehrsons Pehrsons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some reinit woes I'd like cleared before approving. The other commits look OK.

This makes stream_{start,stop} more predictable in the face of rapid start/stop
cycles.
@kinetiknz kinetiknz force-pushed the aaudio_timeout_fixes branch from 4fc91a4 to 705077d Compare January 21, 2026 22:32
@kinetiknz kinetiknz requested a review from Pehrsons January 21, 2026 22:32
Copy link
Contributor

@Pehrsons Pehrsons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Ensure reinit threads can't outlive their associated logical stream, and don't
try to perform a reinit on a stream once it has been reallocated.
@kinetiknz kinetiknz force-pushed the aaudio_timeout_fixes branch from 705077d to 0b86c4c Compare January 22, 2026 21:49
@kinetiknz kinetiknz merged commit 4848575 into master Jan 22, 2026
29 of 31 checks passed
@kinetiknz kinetiknz deleted the aaudio_timeout_fixes branch January 22, 2026 22:09
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

Successfully merging this pull request may close these issues.

3 participants