Repository navigation
iOS headphones with playback detection - #52
Merged
MisterGatto merged 2 commits intoOct 17, 2026
Merged
MisterGatto merged 2 commits into
MisterGatto merged 2 commits into
Conversation
file(GLOB) without CONFIGURE_DEPENDS is only evaluated at configure time, so a build with an existing app/.cxx silently leaves out newly added .cpp files and the APK fails at runtime with UnsatisfiedLinkError. CONFIGURE_DEPENDS re-checks the glob on every build (CMake 3.12+, this build uses 3.22.1).
In the TGC Android build the native SystemIO check for other audio is a stub that always returns false, so the TuneBand headphones and the music-bus fade never trigger. Like the NetEase build, Canvas now answers it from Java: an AudioPlaybackCallback reports active USAGE_MEDIA players, not counting Canvas's own ExoPlayer, once a USAGE_GAME player has been seen; otherwise the device is reported unsupported. The native side (Core/OtherAudio) locates the headphones update, SystemIO and the slot by instruction shape with no per-build offsets, refuses and logs on any mismatch, and answers only the headphones call site, so FMOD init and recording are unchanged. Launcher setting in General, off by default, with a not-supported line on the row; strings in all locales. Host tests in app/src/test/cpp use fixtures from real 0.33.8 to 0.35.1 images; set OTHER_AUDIO_IMAGES to scan full libBootloader.so files.
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.
Play music in another app and your avatar wears headphones. Other players will see it too.
Usage:
Settings > General > "Headphones while listening", then restart Sky and play music in Spotify or any other app.Supported: 0.34.0 to 0.35.1. Future versions should, in theory, work (runtime decoder, no hard-coded offsets). If a future build ever doesn't match, the feature simply stays off.
Disabled by default, device-tested.
Phones that can't report other apps' audio show "Not supported on this device".