sgdk
|
00001 00013 #ifndef _XGM_H_ 00014 #define _XGM_H_ 00015 00016 00020 #define DRIVER_FLAG_MANUALSYNC_XGM (1 << 0) 00021 #define DRIVER_FLAG_DELAYDMA_XGM (1 << 1) 00022 00023 00028 u8 XGM_isPlaying(); 00040 void XGM_startPlay(const u8 *song); 00047 void XGM_stopPlay(); 00055 void XGM_pausePlay(); 00063 void XGM_resumePlay(); 00064 00084 u8 XGM_isPlayingPCM(const u16 channel_mask); 00103 void XGM_setPCM(const u8 id, const u8 *sample, const u32 len); 00121 void XGM_setPCMFast(const u8 id, const u8 *sample, const u32 len); 00140 void XGM_startPlayPCM(const u8 id, const u8 priority, const u16 channel); 00153 void XGM_stopPlayPCM(const u16 channel); 00154 00163 u32 XGM_getElapsed(); 00176 u16 XGM_getMusicTempo(); 00189 void XGM_setMusicTempo(u16 value); 00190 00197 u16 XGM_getManualSync(); 00206 void XGM_setManualSync(u16 value); 00227 #define XGM_nextFrame() XGM_nextXFrame(1) 00228 00234 void XGM_nextXFrame(u16 num); 00235 00242 void XGM_setLoopNumber(s8 value); 00243 00259 void XGM_set68KBUSProtection(u8 value); 00266 u16 XGM_getForceDelayDMA(); 00279 void XGM_setForceDelayDMA(u16 value); 00291 u32 XGM_getCPULoad(); 00292 00293 00294 #endif // _XGM_H_