Repository navigation
firmware: add --no-audio build flag to keep audio on the iPhone - #180
Merged
Merged
Conversation
Adds an optional --no-audio flag (-DNO_AIRPLAY_AUDIO=1) to hardware/flash.sh so the AirPlay receiver advertises video mirroring only: - clears SupportsAudio, AudioRedundant, and AudioFormats bits in AP_FEATURES - skips _raop._tcp mDNS advertising - omits initialVolume, audioFormats, and audioLatencies in GET /info Tested on XIAO ESP32-S3 with iPhone Screen Mirroring + YouTube: video mirrors normally while audio stays on the iPhone speaker.
Owner
|
Thanks a lot @huisinro, really appreciated! This is a clean, well-scoped change: the default build stays exactly as it was, and the feature bits you cleared are the right ones. Thanks for testing it on a real XIAO too. Merged. Happy to review more if you have other ideas! |
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.
Adds an optional
--no-audioflag (-DNO_AIRPLAY_AUDIO=1) tohardware/flash.shso the AirPlay receiver advertises video mirroring only and leaves audio playback on the iPhone speaker.Changes
hardware/hid_bridge/src/airplay/ap_internal.h: clearSupportsAudio(bit 9),AudioRedundant(bit 10), andAudioFormats0..3 (bits 18..21) inAP_FEATURESwhenNO_AIRPLAY_AUDIOis defined.hardware/hid_bridge/src/airplay/mdns.c: skip advertising_raop._tcpwhenNO_AIRPLAY_AUDIOis defined.hardware/hid_bridge/src/airplay/handlers.c: omitinitialVolume,audioFormats, andaudioLatenciesinGET /infowhenNO_AIRPLAY_AUDIOis defined.hardware/flash.sh: add--no-audiobuild option.Default builds (without
--no-audio) are completely unchanged, preserving AirPlay audio forwarding for the app's listening feature.Testing
hardware/flash.sh --build-onlyandhardware/flash.sh --no-audio --build-onlycleanly.scripts/check-public.sh.--no-audioonto a Seeed Studio XIAO ESP32-S3 and verified on iPhone with Screen Mirroring + YouTube: video mirrors normally while audio plays on the iPhone speaker.