Add Android AMY hello-world C-scale app - #4
Draft
linuxificator wants to merge 28 commits into
Draft
Conversation
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.
Summary
Adds a minimal Android application that exercises the generic Android AMY service end to end.
On launch the app:
AmyServicefrom theamy-servicemodule;<filesDir>/amy.sockAF_UNIX/SOCK_SEQPACKETsocket;V2.0;C scale completeafter the sequence is sent.JNI in the demo is only a tiny client-side Unix-socket shim. It never calls AMY. Musical control remains AMY wire over
amy.sock. The demo is one example client of the generic Android AMY service; the service itself has no dependency on this app or on any UI framework.Cold-start/readiness behavior
The generic Android service publishes
amy.sockonly after Oboe has started and its realtime callback has executed at least once. Successful socket connection is therefore the readiness boundary for clients rather than a fixed Android startup delay.The hello-world additionally leaves 30 ms between oscillator setup and the first note so initial synth configuration and C4 cannot be collapsed into the same first command-drain interval on a fresh AMY instance.
Audio routing diagnostics
The generic Android service logs Oboe's actual output device ID plus negotiated stream properties.
AmyServiceresolves the Oboe device ID through AndroidAudioDeviceInfoand logs a route type such asBUILTIN_SPEAKER,BUILTIN_EARPIECE, Bluetooth, wired headphones, or USB when Android exposes a matching device.Build/test
The Android workflow:
amy-service-debug.aar;hello-world-debug.apk;C scale complete, noC scale failed,V2.0, and all eight note-on packets 60, 62, 64, 65, 67, 69, 71, 72.x86_64is enabled on this demo branch so the same native AMY/Oboe service can run in CI;arm64-v8aremains included for real devices.This PR is intentionally based on
feature/android-unix-socketbecause it consumes the generic Android AMY service from PR #3.