Debian Codegraph @

music/musiclib.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19
20 #define OMFCMD_NUM 22
21
22 #define OMFCMD_STREAM 0 // associates a symbol with a stream filename
23 #define OMFCMD_SECTION 1 // begins a theme
24 #define OMFCMD_PLAY 2 // plays a sample specified through llpt and lplc
25 #define OMFCMD_ENDSECTION 3 // ends a theme
26 #define OMFCMD_LABEL 4 // defines a label for branching
27 #define OMFCMD_COMPARE 5 // compares a register rX to what's loaded via lcmp
28 #define OMFCMD_LCMP 6 // loads NUMBER into lcmp
29 #define OMFCMD_LLPT 7 // specifies next play will load the sample specified
30 #define OMFCMD_LPLC 8 // specifies next play will loop sample n times
31 #define OMFCMD_INCI 9 // increments 'I' counter
32 #define OMFCMD_SETI 10 // sets 'I' counter
33 #define OMFCMD_IFI 11 // if 'I' counter == n then inst1;inst2;...;inst n
34 #define OMFCMD_REGION 12 // specifies a start of a named region
35 #define OMFCMD_ENDREGION 13 // specifies the end of a named region
36
37 #define OMFCMD_BRANCHING 15
38 #define OMFCMD_BLT 15 // branch if rX < lcmp
39 #define OMFCMD_BGT 16 // branch if rX > lcmp
40 #define OMFCMD_BEQ 17 // branch if rX == lcmp
41 #define OMFCMD_BNIF 18 // branch if stream playing is NOT finished.
42 #define OMFCMD_GOTO 19 // unconditional goto a label
43 #define OMFCMD_WAIT 20 // tells the system to wait
44
45 // undocumented codes.
46 #define OMFCMD_MPLAY 200 // internal code.
47 #define OMFCMD_ENDIFI 201 // end of ifi conditional.