Commit Graph
11 Commits
Author SHA1 Message Date
evgeny d5deef1521 Respect microphone permission callback ownership and test settings disposal 2026-10-29 13:35:19 +01:00
evgeny a9b791b2cc Keep voice cleanup independent of caller cancellation and stop playback promptly 2026-10-29 13:35:19 +01:00
evgeny 61e67de9e7 Reject new capture while an IO teardown holds its lifecycle lock 2026-10-29 13:35:19 +01:00
evgeny 1a514ba1c0 Wait for asynchronous voice cleanup acknowledgement in lifecycle regression test 2026-10-29 13:35:19 +01:00
evgeny fdebc854c5 Verify explicit native cancellation failure and document independent audio ownership 2026-10-29 13:35:19 +01:00
evgeny 4703eccdea Test retained voice resources, decoder failures and nonblocking disposal 2026-10-29 13:35:19 +01:00
evgeny 1db3327f68 Make voice recording ownership and playback failures explicit 2026-10-28 11:36:13 +01:00
evgeny a8e9e4d425 Reproduce voice capture rollback and playback cleanup failures 2026-10-28 11:36:13 +01:00
evgeny 96b7808b3c Model microphone permission for voice recorder host tests 2026-10-28 11:36:13 +01:00
evgeny 8b500d4aa5 Add host audio output controls for voice recorder failures 2026-10-28 11:36:13 +01:00
evgeny 99b5244ad5 Make Android microphone capture stoppable and cleanup resilient
Use nonblocking AudioRecord reads with data and timestamp deadlines. Serialize idempotent close, finish interrupted joins before release, isolate callback failures, and abort stereo fallback when partial-record cleanup fails.

Close failed shared readers to new subscriptions, roll back worker startup, isolate observers, preserve interrupt state, and release the last consumer exactly once. Add an independent capture-tests JVM module to the standard Android unit-test task.

Validation: 38 capture scenarios (25 AudioRecord plus 13 PCM/PTT), 455 JVM tests, assembleDebug, core build, and full check.sh (225 tests plus proxy/burst/load) passed.
2026-10-28 00:53:01 +01:00