1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 21:40:15 +00:00

another bug-fix and missing documentation added

This commit is contained in:
Marc Zinnschlag 2010-07-03 20:51:21 +02:00
parent 5d46fc869c
commit 5174679864
2 changed files with 16 additions and 5 deletions

View File

@ -21,6 +21,17 @@ Segment 4:
opcodes 0x200-0x3ff unused
Segment 5:
op 2000000: push 1 if cell has changed since last frame, 0 if not
opcodes 0x2000001-0x3ffffff unused
op 2000000: CellChanged
op 2000001: Say
op 2000002: SayDone
op 2000003: StreamMusic
op 2000004: PlaySound
op 2000005: PlaySoundVP
op 2000006: PlaySound3D
op 2000007: PlaySound3DVP
op 2000008: PlayLoopSound3D
op 2000009: PlayLoopSound3DVP
op 200000a: StopSound
op 200000b: GetSoundPlaying
opcodes 0x200000c-0x3ffffff unused

View File

@ -206,11 +206,11 @@ namespace MWSound
extensions.registerFunction ("saydone", 'l', "", Script::opcodeSayDone);
extensions.registerInstruction ("streammusic", "S", Script::opcodeStreamMusic);
extensions.registerInstruction ("playsound", "S", Script::opcodePlaySound);
extensions.registerInstruction ("playsoundvp", "Sll", Script::opcodePlaySoundVP);
extensions.registerInstruction ("playsoundvp", "Sff", Script::opcodePlaySoundVP);
extensions.registerInstruction ("playsound3d", "S", Script::opcodePlaySound3D);
extensions.registerInstruction ("playsound3dvp", "Sll", Script::opcodePlaySound3DVP);
extensions.registerInstruction ("playsound3dvp", "Sff", Script::opcodePlaySound3DVP);
extensions.registerInstruction ("playloopsound3d", "S", Script::opcodePlayLoopSound3D);
extensions.registerInstruction ("playloopsound3dvp", "Sll",
extensions.registerInstruction ("playloopsound3dvp", "Sff",
Script::opcodePlayLoopSound3DVP);
extensions.registerInstruction ("stopsound", "S", Script::opcodeStopSound);
extensions.registerFunction ("getsoundplaying", 'l', "S", Script::opcodeGetSoundPlaying);