Skip to content

Add VGM reading and playback through a standalone YM2608 - #42

Merged
bubio merged 1 commit into
mainfrom
feat/vgm-reader
Nov 22, 2026
Merged

bubio merged 1 commit into
mainfrom
feat/vgm-reader

Conversation

@bubio

@bubio bubio commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • VGMFile: YM2608 1 基だけを使う VGM 1.51–1.71 を解析(レジスタ書き込み、待ち、DELTA-T データブロック、ループ点、GD3 タグ)。VGMLogger が書くファイルを読める
  • VGMPlayer: YM2608Renderer で少しずつ描画し、ループを指定回数繰り返す。ホストはオーディオの補充処理から逐次ストリーミングできる
  • C ABI b88_vgm_player_*(open/close/load_rhythm/total_frames/played_frames/render/tag)を追加(すべて public、追加のみ)
  • 用途: bubio/Bubilator88 の VGM Quick Look プレビュー

Test plan

  • swift test(新規 7 件を含め全件パス。ロガーが書いたファイルを読み戻すテスト、C ABI 経由の再生テストを含む)
  • 回帰テスト 20 シナリオ PASS
  • アプリ側の Quick Look プレビューで再生・一時停止・終了時の巻き戻しを手動確認

🤖 Generated with Claude Code

VGMFile parses VGM 1.51-1.71 files whose only chip is one YM2608 (the
files VGMLogger writes): register writes, waits, DELTA-T data blocks,
the loop point and the GD3 tag. VGMPlayer renders one in chunks through
YM2608Renderer, repeating the loop a given number of times, so a host
can stream it from its audio refill path. b88_vgm_player_* exposes the
player over the C ABI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bubio
bubio merged commit 60c3cbd into main Nov 22, 2026
3 checks passed
@bubio
bubio deleted the feat/vgm-reader branch November 22, 2026 08: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