Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

0xc2 fade-bgm

Opcode 0xc2 (194), audio. Investigated by OME, with high confidence (from investigation).

(target_basis_points)(duration_ms) — start a background fade of the current BGM level to a target in basis points (0..10000; CONFIG passes its setting × 100), applied linearly through the native log volume curve; the script continues at once. Durations >=1000 ms use 100 steps; shorter fades use 10. Active ADV fast-forward applies the endpoint immediately; an ordinary advance click does not. At completion target 0 releases the current BGM source and clears the retained track; the next BGM op (0xb7/0xb8/0xb9/0xbf/0xc3) completes a running fade before it acts.

Operands

#RoleTypes seenAccess
1target_basis_pointsl-intread
2duration_msimmread

In the port

OME’s port implements it. It never waits: a wait parks the engine until input, a sleep, a transition, a dialog or a movie ends. What it can do with control besides waiting:

  • falls: it returns to the next instruction

OME derives these facts from the port’s handler (its tools/opcode_flow.py), and they over-approximate: a fact some path can reach is given.

By build

Whether each build’s scripts use it, as OME’s survey of the game’s scripts saw them, and how many evidence items name the build.

BuildGameUsed by its scriptsEvidence
4.24J (SYS4422)Himegari Dungeon Meisteryes1
4.33G (SYS4433)Kamidori Alchemy Meisteryes—
4.38D (SYS4438)Soukoku no Arterialyes—

Evidence

  • native-re on SYS4422, high confidence; Himegari AGE.EXE Ghidra /v2 and decoded script corpus (vm-map/opcodes.toml opcode 0xc2): Ghidra op_0xc2_bgm_fade@0x4204c0 checks run-state 0x08000000 first: active ADV fast-forward arms the target and calls bgm_fade_tick@0x464960 with a terminal delta without setting run-state 0x200. Otherwise it sets run-state 0x200, arms the fade's own period timer ctx+0x5f400 (duration/100 or /10 ms) and calls bgm_fade_arm@0x464830. engine_main_tick_with_exception_policy services 0x200 at 0x411e65 from elapsed timer periods, never from action-4 clicks, and then falls through to the other services: with no other bit set it reaches the op dispatch at 0x4125eb, so 0x200 does not park the interpreter. bgm_fade_tick@0x464960 at 100 % commits the level and, for target 0, calls bgm_stop_release; ops 0xb7/0xb8/0xb9/0xbf/0xc3 clear 0x200 and call bgm_fade_tick(..., 100) before acting. adv_input_service_poll@0x411230 uses click bit 0x10 only to release the preceding text wait, while fast-forward bit 0x40 establishes 0x08000000. Native SC0000 trace at 0x7c1/0x126c shows target 0, duration 3000, 1% ticks at about 30 ms; drive 2026-11-07: native is at 0x7fa (play-bgm 5, which ends the fade) when the click on 始める returns, and its first text page waits 1.81 s after the click. SYS4433 is the same (op_0xc2_bgm_fade_sys4433@0x41e580, tick 0x4120bb).

Details

OME’s notes on it, as the registry keeps them.

Implemented as a background fade (2026-11-07; until then the port parked the VM for the whole duration, so each scene's BGM change waited up to the fade time: SC0000's first page took 5.0 s after 始める against native's 1.8 s, now 1.9 s). The audio native (Ome.Engine.Natives.Audio, since engine layering milestone 6 on 2026-11-12) keeps the fade (run-state 0x200) and the engine tick runs it on the frame clock, so under a modal dialog it holds and the next tick makes up the time, as native's does (docs/engine-re.md, 'A fade under the 終了 dialog stops, then catches up'); at a zero target it releases the source and clears the retained track. Ops 0xb7/0xb8/0xb9/0xbf, and a numbered load, first end a running fade; op 0xc0 and a numbered save settle a fade that has run its course, so a fade to zero clears the retained track exactly when it ends. VM dispatch substitutes zero duration only when persistent/read/physical ADV fast-forward is already active, matching the native direct-endpoint branch; ordinary execution, including a click that merely released the preceding text wait, retains the authored duration. As native, a fade step applies its interpolated level without committing it (+0x420 changes only at 100 %), so a fade re-armed mid-way starts again from the last committed level. bgm_fade_tick interpolates ((100-p)*current + target*p)/100 in basis points and the backend converts the level with AGE's shared curve (1000*log2(level/10000) mB, bgm_dshow_apply_volume_level@0x4610d0); the native tracks the level in basis points and sends the device the level converted through NativeAudioVolume (2026-11-04).