2008-09-18 03:15:49 +00:00
|
|
|
class CAudioPlugin {
|
|
|
|
void * hDll;
|
|
|
|
bool m_Initilized, m_RomOpen;
|
|
|
|
void * m_hAudioThread;
|
|
|
|
PLUGIN_INFO m_PluginInfo;
|
|
|
|
|
|
|
|
DWORD m_StatusReg;
|
|
|
|
|
|
|
|
void UnloadPlugin ( void );
|
|
|
|
bool ValidPluginVersion ( PLUGIN_INFO * PluginInfo );
|
|
|
|
|
|
|
|
void (__cdecl *CloseDLL) ( void );
|
|
|
|
void (__cdecl *RomOpen) ( void );
|
|
|
|
void (__cdecl *RomClosed) ( void );
|
|
|
|
void (__cdecl *Update) ( BOOL Wait );
|
|
|
|
void (__cdecl *m_DacrateChanged) ( SystemType Type );
|
|
|
|
void (__cdecl *PluginOpened) ( void );
|
|
|
|
void (__cdecl *SetSettingInfo) ( PLUGIN_SETTINGS * info );
|
2008-12-04 10:46:26 +00:00
|
|
|
void (__cdecl *SetSettingInfo2) ( PLUGIN_SETTINGS2 * info );
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
//Function used in a thread for using audio
|
|
|
|
static void AudioThread (CAudioPlugin * _this);
|
|
|
|
|
|
|
|
public:
|
|
|
|
CAudioPlugin ( const char * FileName);
|
|
|
|
~CAudioPlugin ( void );
|
|
|
|
|
|
|
|
void DacrateChanged ( SystemType Type );
|
|
|
|
bool Initiate ( CN64System * System, CMainGui * RenderWindow );
|
|
|
|
void Close ( void );
|
|
|
|
void GameReset ( void );
|
|
|
|
void RomOpened ( void );
|
|
|
|
stdstr PluginName ( void ) const { return m_PluginInfo.Name; }
|
|
|
|
|
|
|
|
inline bool Initilized ( void ) const { return m_Initilized; }
|
|
|
|
|
|
|
|
void (__cdecl *LenChanged) ( void );
|
|
|
|
void (__cdecl *Config) ( DWORD hParent );
|
|
|
|
DWORD (__cdecl *ReadLength) ( void );
|
|
|
|
void (__cdecl *ProcessAList) ( void );
|
|
|
|
};
|