Skip to content

Fix Android Oboe Build Errors and Modernize Audio Path - #116

Merged
winnerspiros merged 1 commit into
masterfrom
fix-android-oboe-build-errors-987678893198290718
Mar 30, 2026
Merged

Fix Android Oboe Build Errors and Modernize Audio Path#116
winnerspiros merged 1 commit into
masterfrom
fix-android-oboe-build-errors-987678893198290718

Conversation

@google-labs-jules

Copy link
Copy Markdown

This PR resolves the Android build failure caused by missing oboe::Process members in newer Oboe versions. It also modernizes the Oboe integration and addresses runtime issues reported by the user.

Key changes:

  1. Oboe Update: Updated the native build to use the latest commit from the official Oboe repository.
  2. Build Fix: Removed manual thread affinity pinning (which used oboe::Process) and replaced it with Oboe's built-in support for the Android Dynamic Performance Framework (ADPF) via setPerformanceHintEnabled(true).
  3. Optimizations: Added setChannelConversionAllowed(false) and setFormatConversionAllowed(false) to the audio stream builder to minimize internal overhead.
  4. Reflection Robustness: Fixed unboxing errors in OboeAudioRedirector.cs by implementing a more flexible handle retrieval for BASS mixers that handles multiple names and underlying types (int, long, IntPtr).
  5. Duplicate Audio Fix: Ensured that audio is only output via Oboe if the default BASS hardware output has been successfully silenced, preventing the reported "echo" effect.

PR created automatically by Jules for task 987678893198290718 started by @winnerspiros

- Update Oboe to latest commit (39b1fd2) in CMakeLists.txt.
- Replace deprecated oboe::Process manual affinity settings with modern ADPF (Android Dynamic Performance Framework) support in oboe_bridge.cpp.
- Add explicit low-latency flags (setChannelConversionAllowed, setFormatConversionAllowed) to the native bridge.
- Fix unboxing errors in OboeAudioRedirector.cs by using robust reflection for BASS mixer handles.
- Prevent duplicated audio by ensuring Oboe only outputs data if BASS mixers were successfully silenced.
@google-labs-jules

Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@winnerspiros
winnerspiros merged commit 5bf60e1 into master Mar 30, 2026
7 of 15 checks passed
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.

1 participant