Skip to content

feat(android): add per-AudioContext output profile - #1313

Closed
maciejkucmierz-swm wants to merge 1 commit into
software-mansion:mainfrom
maciejkucmierz-swm:codex/pr1-output-profile
Closed

maciejkucmierz-swm wants to merge 1 commit into
software-mansion:mainfrom
maciejkucmierz-swm:codex/pr1-output-profile

Conversation

@maciejkucmierz-swm

Copy link
Copy Markdown

Closes #

⚠️ Breaking changes ⚠️

  • None.

Introduced changes

Adds AudioContextOptions.androidOutputProfile?: 'media' | 'voiceCommunication'.

voiceCommunication classifies the individual Android output stream with Oboe Usage::VoiceCommunication and ContentType::Speech. The default remains media.

Scope

  • Immutable per-AudioContext option; no global playback-profile state.
  • Preserves existing Oboe sharing mode and performance mode.
  • Does not request audio focus, enter communication mode, select a route, or guarantee AEC, noise suppression, or AGC.

Validation

  • Pre-commit type, lint, and formatting checks pass.
  • Added a focused JS regression test proving the option is forwarded to globalThis.createAudioContext.
  • Direct Android Gradle library build passed.
  • Physical-device validation remains required for routing, volume, and platform behavior.

Checklist

  • Linked relevant issue — not applicable; no issue was provided.
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage — not applicable; this is an Android-only native output classification.
  • Added support for web — not applicable; no web behavior is added.
  • Updated old arch android spec file — not applicable; this PR does not change the Android TurboModule spec.

@closetcaiman closetcaiman added feature New user-facing features or major capabilities android Native Android implementation, C++/Java/Kotlin bindings, or Android-specific issues labels Sep 24, 2026
@maciejkucmierz-swm
maciejkucmierz-swm marked this pull request as ready for review September 24, 2026 15:13
@mdydek

mdydek commented Sep 28, 2026

Copy link
Copy Markdown
Member

closes by #1323

@mdydek mdydek closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Native Android implementation, C++/Java/Kotlin bindings, or Android-specific issues feature New user-facing features or major capabilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants