music.h 2.22 KB

/*---------------------------------------------------------------------*
        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 */