0xc1 toggle-bgm-pause
Opcode 0xc1 (193), audio. Investigated by OME, with high confidence (from investigation).
Flip the BGM's pause: a playing track is held where it is, and a held one plays on from there.
Operands
It takes no operands.
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.
| Build | Game | Used by its scripts | Evidence |
|---|---|---|---|
4.24J (SYS4422) | Himegari Dungeon Meister | no | — |
4.33G (SYS4433) | Kamidori Alchemy Meister | no | — |
4.38D (SYS4438) | Soukoku no Arterial | yes | 1 |
Evidence
- native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (
vm-map/opcodes.toml opcode 0xc1): op_0xc1_handler@0x4189f0 tail-calls 0x476470 on the BGM object (ctx+0xaa0d8), which stores !flag at +0x410 and calls the current backend's vtable +0xc with it. The DirectSound backend's (0x47a2b0) calls 0x49c790(11), sound_buffer_stop on the channel's buffer, for a nonzero flag and 0x49c860(11), which plays the buffer again with its stored loop flag, for zero; the CD backend's (0x404530) sends MCI_PAUSE or MCI_RESUME. 0x4763e0 (a play of another track) and bgm_stop_release@0x476310 zero +0x410.
Details
OME’s notes on it, as the registry keeps them.
The flag flips whether or not a track plays; starting a track and releasing the source clear it, and an identical play request, which keeps the stream, does not. With the DirectSound route the backend stops channel 11's buffer and later plays it on; with the CD route it sends MCI_PAUSE and MCI_RESUME. A numbered save does not keep the flag (context_state_serialize saves the track alone), and after a load CALLBACK_LOAD's op 0xb7 0 starts the track again unheld. A scene reset zeroes the flag without telling the backend, so a held stream stays held and the next op 0xc1 holds it again; the Music route's restart clears it. Not read: whether anything else plays or stops channel 11 while it is held. 創刻のアテリアル has 1 site.