Skip to content

Add BootSnapshot for disk thumbnails, and a switch to skip audio synthesis - #23

Merged
bubio merged 2 commits into
mainfrom
feature/ql-disk-thumbnail
Sep 24, 2026
Merged

bubio merged 2 commits into
mainfrom
feature/ql-disk-thumbnail

Conversation

@bubio

@bubio bubio commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • BootSnapshot: D88 をヘッドレスで起動し(V2・4MHz・サウンドボード II なし・エミュレート時間の RTC)、サムネイルに使う 1 フレームを返す。ディスクが止まり画面が落ち着いた時点で撮影し、ほぼ黒画面や BASIC の入力待ちなら nil を返す。アプリ側の Quick Look 拡張(bubio/Bubilator88 の後続 PR)が使う
  • PC88.audioOutputEnabled: false で FM・SSG・リズム・ミックスを省略する。タイマー・busy・ADPCM の進行は続けるので、CPU から見える状態は変わらない
  • BootTester に --snapshot(停止条件の調整用)と BOOTTEST_AUDIO=0 を追加
  • SaveStateSerialize.swift の継続行のインデント修正(空白のみ、別コミット)

公開 API は追加のみで、既存の API・セーブステート形式・C ABI は変更していない。

Test plan

  • swift test(940 件 PASS)。音声スイッチの有無でステータス・IRQ・ADPCM EOS が一致するテストと BootSnapshot の判定テストを追加
  • /regression(20 件 PASS)
  • BootTester --snapshot でテスト用ディスク 18 枚を確認(タイトル 10 枚、期限打ち切りで妥当 3 枚、失敗扱い 4 枚、失敗画面 1 枚)
  • scripts/format_all.sh --check 指摘なし、scripts/lint.sh で追加箇所に警告なし

🤖 Generated with Claude Code

bubio and others added 2 commits September 24, 2026 13:16
The extraSections line sat one column left of thumbnail, which
scripts/format_all.sh --check reports. Whitespace only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hesis

BootSnapshot boots a D88 headless (N88-BASIC V2, 4MHz, no Sound Board II,
emulated-time RTC) and returns the frame to use as its thumbnail: it stops
once the drives are quiet and the screen is stable, or animating without
still filling up, and returns nil when the screen is nearly black or the
machine is at the BASIC prompt. The Quick Look extension in the app uses it.

PC88.audioOutputEnabled = false skips FM, SSG, rhythm and the mix while
timers, busy status and ADPCM playback keep running, so the CPU sees no
difference; a test checks the status ports, IRQ line and ADPCM EOS match.

BootTester gains --snapshot to run the capture over disks and tune its
thresholds, and BOOTTEST_AUDIO=0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bubio
bubio merged commit 16c6dd8 into main Sep 24, 2026
3 checks passed
@bubio
bubio deleted the feature/ql-disk-thumbnail branch September 24, 2026 04:43
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