sgdk
xgm2.h
Go to the documentation of this file.
00001 
00014 #ifndef _XGM2_H_
00015 #define _XGM2_H_
00016 
00017 
00024 void XGM2_loadDriver(bool waitReady);
00031 void XGM2_unloadDriver(void);
00032 
00037 bool XGM2_isPlaying(void);
00038 
00050 void XGM2_load(const u8 *song);
00064 void XGM2_load_FAR(const u8 *song, const u32 len);
00076 void XGM2_playTrack(const u16 track);
00088 void XGM2_play(const u8* song);
00102 void XGM2_play_FAR(const u8* song, const u32 len);
00103 
00113 void XGM2_stop(void);
00123 void XGM2_pause(void);
00133 void XGM2_resume(void);
00134 
00156 u8 XGM2_isPlayingPCM(const u16 channel_mask);
00179 void XGM2_playPCM(const u8 *sample, const u32 len, const SoundPCMChannel channel);
00210 void XGM2_playPCMEx(const u8 *sample, const u32 len, const SoundPCMChannel channel, const u8 priority, const bool halfRate, const bool loop);
00225 void XGM2_stopPCM(const SoundPCMChannel channel);
00226 
00231 bool XGM2_isProcessingFade(void);
00240 void XGM2_fadeIn(const u16 numFrame);
00249 void XGM2_fadeOut(const u16 numFrame);
00258 void XGM2_fadeOutAndStop(const u16 numFrame);
00267 void XGM2_fadeOutAndPause(const u16 numFrame);
00280 void XGM2_fadeTo(const u16 fmVolume, const u16 psgVolume, const u16 numFrame);
00281 
00288 void XGM2_setLoopNumber(const s8 value);
00289 
00299 u32 XGM2_getElapsed(void);
00300 
00312 u16 XGM2_getMusicTempo(void);
00324 void XGM2_setMusicTempo(const u16 value);
00325 
00335 void XGM2_setFMVolume(const u16 value);
00345 void XGM2_setPSGVolume(const u16 value);
00346 
00351 bool XGM2_isPAL(const u8 *xgm2);
00352 
00360 u16 XGM2_getCPULoad(const bool mean);
00368 u16 XGM2_getDMAWaitTime(const bool mean);
00369 
00375 u16 XGM2_getDebugFrameCounter(void);
00381 u16 XGM2_getDebugPCMRate(void);
00387 u8 XGM2_getDebugMissedFrames(void);
00393 u8 XGM2_getDebugProcessDuration(const u16 ind);
00394 
00395 
00396 #endif // _XGM2_H_
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines