music.h
2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*---------------------------------------------------------------------*
Copyright (C) 1998 Nintendo. (Originated by SGI)
$RCSfile: music.h,v $
$Revision: 1.1.1.1 $
$Date: 2002/05/02 03:27:18 $
*---------------------------------------------------------------------*/
/* music.h */
/* these defines will be used by makerom when building the rom */
#define STACKSIZE 0x2000
/* sct - COMP_SEQ_PLAY now defined in UniversalSP.h */
#define PROFILE
/* #define AUD_MEM_PROF */
#if defined( _HW_VERSION_1 )
#define PRINTF rmonPrintf
#else
#define PRINTF osSyncPrintf
#endif
/*
WARNING!
These must appear above #define _LANGUAGE_C in order that
makerom can access them.
*/
#define STATIC_SEGMENT 1
#define DYNAMIC_SEGMENT 2
#ifdef _LANGUAGE_C /* these defines will only be used by compiler */
#include <ultra64.h>
#include "gfx.h"
#if defined( _HW_VERSION_1 )
#define PRINTF rmonPrintf
#else
#define PRINTF osSyncPrintf
#endif
#define UTIL_PRIORITY 1
#define MAIN_PRIORITY 10
#define GAME_PRIORITY 10
#define AUDIO_PRIORITY 12
#define SCHEDULER_PRIORITY 13
#define MAX_MESGS 8
#define DMA_QUEUE_SIZE 200
#define NUM_FIELDS 1 /* 1 = 60 Hz video interrupts, 2 = 30 Hz, etc */
#define LOG_SCHEDULE_GFX_TASK 101
#define LOG_RDP_DONE 102
#define LOG_RETRACE 103
#define LOG_INTR 104
#define SCHED_CONTROLLER_MSG (OS_SC_LAST_MSG+1)
#define SEQ_NEEDED 1
#define SEQ_PLAYING 2
#define SEQ_STOPPED 3
#define LOG_LEN 0x8000
extern OSLog *log;
extern int logging;
extern char _yieldSegmentEnd[];
extern char _staticSegmentRomStart[], _staticSegmentRomEnd[];
extern char _miditableSegmentRomStart[], _miditableSegmentRomEnd[];
extern char _seqSegmentRomStart[], _seqSegmentRomEnd[];
extern char _midibankSegmentRomStart[], _midibankSegmentRomEnd[];
extern char _sfxbankSegmentRomStart[], _sfxbankSegmentRomEnd[];
extern char _sfxtableSegmentRomStart[], _sfxtableSegmentRomEnd[];
extern int verbose;
extern OSPiHandle *handler;
s32 initControllers(void);
void UpdateController(void);
#endif /* _LANGUAGE_C */