Skip to content

feat(simax,ax): add audio-state inspection and AVAudioSession interruption stimulus - #16

Merged
Apdelrahman1911 merged 1 commit into
mainfrom
feat/audio-state-and-interrupt-stimuli
Dec 6, 2026
Merged

Apdelrahman1911 merged 1 commit into
mainfrom
feat/audio-state-and-interrupt-stimuli

Conversation

@Apdelrahman1911

Copy link
Copy Markdown

Adds public-API audio inspection and interruption simulator stimuli through libsimax (host/simax/simax_actions.m) and the x86sim CLI (audio-state and audio-interrupt):

  • x86sim audio-state [--bundle BID]: reads public AVAudioSession (category, mode, sample_rate, output_channels, outputs) and MPNowPlayingInfoCenter (playback_state, scalar nowPlayingInfo fields, excluding raw artwork bytes) via NSClassFromString + objc_msgSend with zero extra framework link dependencies.
  • x86sim audio-interrupt began|ended [--should-resume|--no-resume] [--bundle BID]: posts Apple's documented AVAudioSessionInterruptionNotification with object = AVAudioSession.sharedInstance on the target app's main thread and returns synchronous confirmation.
  • Adds mock-socket unit test axact::tests::audio_state_and_interrupt_wire_protocol.

@Apdelrahman1911
Apdelrahman1911 merged commit a48a5ef into main Dec 6, 2026
4 checks passed
@Apdelrahman1911
Apdelrahman1911 deleted the feat/audio-state-and-interrupt-stimuli branch December 6, 2026 08:05
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