0x246 set-movie-playback-rate
Opcode 0x246 (582), draw. Investigated by OME, with high confidence (from investigation).
(surface_slot)(rate_percent) — set a live movie surface's playback rate through IMediaPosition::put_Rate(rate_percent / 100.0).
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | movie surface slot (an index into surface, 1000 entries, not bounds-checked) | imm | read |
| 2 | playback rate percent | imm | read |
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 | 1 |
4.33G (SYS4433) | Kamidori Alchemy Meister | yes | 1 |
4.38D (SYS4438) | Soukoku no Arterial | no | — |
Evidence
- native-re on SYS4422, SYS4433, high confidence; Himegari SYS4422 Ghidra /v2 and Kamidori SYS4433 Ghidra /kamidori/SYS4433 (4.33F), addresses given for /kamidori/4.33G (
vm-map/opcodes.toml opcode 0x246): SYS4422 op_0x246_set_movie_playback_rate@0x424a80 and SYS4433 op_0x246_set_movie_playback_rate@0x4228d0 both fetch surface slot and rate percent, guard a null EngineCtx surface pointer, dereference CMovieToTexture+0x414 IMediaPosition, and call vtable +0x38 put_Rate with operand2 divided by the double constant 100.0. Kamidori BTL.BIN has the sole catalog call at decoded body offset 0x4426 (report file offset 0x4451): after create-texture(44,512,200) and play-movie-to-surface(...,44), it calls (44,200) before starting a timed callback sequence.
Details
OME’s notes on it, as the registry keeps them.
The native handler returns without effect when the surface slot is null and ignores the DirectShow HRESULT. Kamidori's sole site is BTL.BIN: it creates surface 44, starts a battle-effect MPEG, then sets rate 200 before a timed callback sequence. The port applies positive forward rates to both FFmpeg video pacing and Godot's movie-audio pitch/consumption rate; a missing movie binding remains a no-op.