feat: Add DirectAudio driver support - #1806
Draft
joshuatam wants to merge 3 commits into
Draft
Conversation
Introduces DirectAudio as a new audio driver option for Wine. This driver provides direct audio output to Android's AAudio, bypassing PulseAudio or ALSA middleware, potentially improving audio latency and compatibility for users. Thanks for the interesting work from @The412Banner
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
joshuatam
force-pushed
the
feat/directaudio
branch
from
August 12, 2026 02:39
c6ba0cf to
5d0b447
Compare
The412Banner
added a commit
to The412Banner/GameNative
that referenced
this pull request
Aug 12, 2026
Rebuilt directaudio-20260812.tzst from The412Banner/directaudio branch feat/directaudio-switching-usage (v1 + the two utkarshdalal#1806 review comments): - broadened AAudio error-callback recovery (INVALID_STATE/INVALID_HANDLE/ TIMEOUT as well as DISCONNECTED), matching module-aaudio-sink.c, with a stream-identity guard + no-lost-wakeup reopen gate (device-proven, 7 route/bg-fg cycles, no drops). - AAUDIO_USAGE_GAME via dlsym + android_get_device_api_level()>=28 guard (the unixlib direct-links libaaudio; a direct ref would fail .so load on minSdk 26 / Android 8). Same filename/layout; arm64ec, 16KB-page .so (loads on 4KB+16KB).
Rebuilt directaudio-20260812.tzst from The412Banner/directaudio branch feat/directaudio-switching-usage (v1 + the two utkarshdalal#1806 review comments): - broadened AAudio error-callback recovery (INVALID_STATE/INVALID_HANDLE/ TIMEOUT as well as DISCONNECTED), matching module-aaudio-sink.c, with a stream-identity guard + no-lost-wakeup reopen gate (device-proven, 7 route/bg-fg cycles, no drops). - AAUDIO_USAGE_GAME via dlsym + android_get_device_api_level()>=28 guard (the unixlib direct-links libaaudio; a direct ref would fail .so load on minSdk 26 / Android 8). Same filename/layout; arm64ec, 16KB-page .so (loads on 4KB+16KB).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduces DirectAudio as a new audio driver option for Wine.
This driver provides direct audio output to Android's AAudio, bypassing PulseAudio or ALSA middleware, potentially improving audio latency and compatibility for users.
Thanks for the interesting work from @The412Banner
https://github.com/The412Banner/directaudio
Recording
N/A
Type of Change
Checklist
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed.CONTRIBUTING.md.Summary by cubic
Adds DirectAudio as a new Wine audio driver on Android, routing audio via AAudio to reduce latency by bypassing PulseAudio/ALSA. Supported only on Proton 11 arm64ec (Bionic); otherwise it auto-falls back to PulseAudio.
New Features
Audio=directaudio.directaudio-20260812.tzstwith improved AAudio stream recovery andAAUDIO_USAGE_GAME(API 28+);ContainerManager.extractDirectAudio(...)installswinedirectaudio.drvandwinedirectaudio.sointo Wine and copies the.drvto the container’ssystem32when DirectAudio is active.THIRD_PARTY_NOTICESwith DirectAudio (LGPL-2.1-or-later).Migration
Written for commit cdce44d. Summary will update on new commits.