Skip to content

Debug preview: -previewInterfaceName names the silent interface, for screenshots - #101

Merged
Skeyelab merged 1 commit into
mainfrom
preview-interface-name
Dec 3, 2026
Merged

Skeyelab merged 1 commit into
mainfrom
preview-interface-name

Conversation

@Skeyelab

@Skeyelab Skeyelab commented Dec 3, 2026

Copy link
Copy Markdown
Member

Second of three stacked PRs for the App Store screenshots (on #99). Plan: docs/app-store/listing.md, open question 8 (c).

What

  • -previewInterfaceName <name>, a Debug launch argument. It names the silent fake interface that -previewOutputs makes, so the header can read X18/XR18 · 18 out · 48 kHz (the name an XR18 gives over USB) and not Preview interface (silent). With no argument, or a blank one, the name stays as it was.
  • The naming rule is PreviewInterface.name(asked:) in Playback, where it can be tested. Only App/DebugPreview.swift calls it, and that whole file is under #if DEBUG. Release doesn't change: it never makes the fake interface.
  • The Mixer chip isn't touched. With a Mixer set up it shows the address, as on a real device.

Tests

  • PreviewInterfaceTests (3). Red first: PreviewInterfaceTests.swift:10:17: error: cannot find 'PreviewInterface' in scope. After the type existed, all three passed on their first run.
  • swift test: all green. xcodegen generate, then the unsigned Debug iOS Simulator build: succeeded.

Checked only by tests and the Simulator build. The frames in the next PR use the argument.

🤖 Generated with Claude Code

@Skeyelab
Skeyelab force-pushed the preview-interface-name branch from 26c6859 to 6911861 Compare December 3, 2026 07:03
Base automatically changed from app-store-fixture to main December 3, 2026 07:48
…screenshots

The App Store frames read a real interface's name ("X18/XR18 · 18 out ·
48 kHz"), not "Preview interface (silent)". Debug only: DebugPreview is
under #if DEBUG, and Release never makes the fake interface.

Assisted-by: Claude Code:claude-opus-5-5
@Skeyelab
Skeyelab force-pushed the preview-interface-name branch from 6911861 to a4e181e Compare December 3, 2026 07:49
@Skeyelab
Skeyelab enabled auto-merge (squash) December 3, 2026 07:49
@Skeyelab
Skeyelab merged commit 589a24d into main Dec 3, 2026
6 checks passed
@Skeyelab
Skeyelab deleted the preview-interface-name branch December 3, 2026 07:57
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