UniversalSP.h 2.79 KB
/*
  UniversalSP.h

  This file helps manage an application's use of both the sequence player
  and the compact sequence player which are the two built-in sequence data
  players in the audio library.  By enabling and disabling the definition
  of COMP_SEQ_PLAY you can control which set of sequence player routines
  get called through a single, "universal" set of routines (macros).

  Note that there is no equivalent call to alSeqpLoop for the compact sequence player.
*/


#ifndef __UniversalSP__
#define __UniversalSP__


#if 0
#define COMP_SEQ_PLAY  
#endif


#ifdef COMP_SEQ_PLAY

#define ALUSPlayer		ALCSPlayer
#define ALUSeq			ALCSeq
#define ALUSMarker		ALCSeqMarker

#define alUSPNew		alCSPNew
#define alUSPDelete		alCSPDelete
#define alUSPSetSeq		alCSPSetSeq
#define alUSPGetSeq		alCSPGetSeq
#define alUSPSetBank		alCSPSetBank
#define alUSPPlay		alCSPPlay
#define alUSPStop		alCSPStop
#define alUSPGetState		alCSPGetState
#define alUSPSetTempo		alCSPSetTempo
#define alUSPGetTempo		alCSPGetTempo
#define alUSPSetVol		alCSPSetVol
#define alUSPGetVol		alCSPGetVol
#define alUSPSetChlVol		alCSPSetChlVol
#define alUSPGetChlVol		alCSPGetChlVol
#define alUSPSetChlPan		alCSPSetChlPan
#define alUSPGetChlPan		alCSPGetChlPan
#define alUSPSetChlProgram	alCSPSetChlProgram
#define alUSPGetChlProgram	alCSPGetChlProgram
#define alUSPSetChlPriority	alCSPSetChlPriority
#define alUSPGetChlPriority	alCSPGetChlPriority
#define alUSPSetChlFXMix	alCSPSetChlFXMix
#define alUSPGetChlFXMix	alCSPGetChlFXMix
#define alUSPSendMidi		alCSPSendMidi

#define alUSNew(a,b,c)		alCSeqNew(a,b)
#define alUSNewMarker		alCSeqNewMarker
#define alUSSetLoc		alCSeqSetLoc
#define alUSGetTicks		alCSeqGetTicks

#else

#define ALUSPlayer      	ALSeqPlayer
#define ALUSeq			ALSeq
#define ALUSMarker		ALSeqMarker

#define alUSPNew		alSeqpNew
#define alUSPDelete		alSeqpDelete
#define alUSPSetSeq		alSeqpSetSeq
#define alUSPGetSeq		alSeqpGetSeq
#define alUSPSetBank		alSeqpSetBank
#define alUSPPlay		alSeqpPlay
#define alUSPStop		alSeqpStop
#define alUSPGetState		alSeqpGetState
#define alUSPSetTempo		alSeqpSetTempo
#define alUSPGetTempo		alSeqpGetTempo
#define alUSPSetVol		alSeqpSetVol
#define alUSPGetVol		alSeqpGetVol
#define alUSPSetChlVol		alSeqpSetChlVol
#define alUSPGetChlVol		alSeqpGetChlVol
#define alUSPSetChlPan		alSeqpSetChlPan
#define alUSPGetChlPan		alSeqpGetChlPan
#define alUSPSetChlProgram	alSeqpSetChlProgram
#define alUSPGetChlProgram	alSeqpGetChlProgram
#define alUSPSetChlPriority	alSeqpSetChlPriority
#define alUSPGetChlPriority	alSeqpGetChlPriority
#define alUSPSetChlFXMix	alSeqpSetChlFXMix
#define alUSPGetChlFXMix	alSeqpGetChlFXMix
#define alUSPSendMidi		alSeqpSendMidi

#define alUSNew			alSeqNew
#define alUSNewMarker		alSeqNewMarker
#define alUSSetLoc		alSeqSetLoc
#define alUSGetTicks		alSeqGetTicks

#endif

#endif /* __UniversalSP__ */