2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project 64 - A Nintendo 64 emulator. *
|
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
|
2012-10-04 12:23:07 +00:00
|
|
|
class CAudioPlugin
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CAudioPlugin ( const char * FileName);
|
|
|
|
~CAudioPlugin ( void );
|
|
|
|
|
2015-01-26 03:43:37 +00:00
|
|
|
void DacrateChanged ( SYSTEM_TYPE Type );
|
2012-10-04 12:23:07 +00:00
|
|
|
bool Initiate ( CN64System * System, CMainGui * RenderWindow );
|
|
|
|
void Close ( void );
|
|
|
|
void GameReset ( void );
|
|
|
|
void RomOpened ( void );
|
2013-01-03 08:51:00 +00:00
|
|
|
void RomClose ( void );
|
2012-10-04 12:23:07 +00:00
|
|
|
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 );
|
|
|
|
|
|
|
|
private:
|
|
|
|
void * m_hDll;
|
2008-09-18 03:15:49 +00:00
|
|
|
bool m_Initilized, m_RomOpen;
|
|
|
|
void * m_hAudioThread;
|
|
|
|
PLUGIN_INFO m_PluginInfo;
|
|
|
|
|
2012-10-04 12:23:07 +00:00
|
|
|
void Init ( const char * FileName );
|
2008-09-18 03:15:49 +00:00
|
|
|
void UnloadPlugin ( void );
|
|
|
|
|
|
|
|
void (__cdecl *CloseDLL) ( void );
|
|
|
|
void (__cdecl *RomOpen) ( void );
|
|
|
|
void (__cdecl *RomClosed) ( void );
|
|
|
|
void (__cdecl *Update) ( BOOL Wait );
|
2015-01-26 03:43:37 +00:00
|
|
|
void (__cdecl *m_DacrateChanged) ( SYSTEM_TYPE Type );
|
2008-09-18 03:15:49 +00:00
|
|
|
void (__cdecl *PluginOpened) ( void );
|
|
|
|
void (__cdecl *SetSettingInfo) ( PLUGIN_SETTINGS * info );
|
2008-12-04 10:46:26 +00:00
|
|
|
void (__cdecl *SetSettingInfo2) ( PLUGIN_SETTINGS2 * info );
|
2013-04-24 05:03:21 +00:00
|
|
|
void (__cdecl *SetSettingInfo3) ( PLUGIN_SETTINGS3 * info );
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
//Function used in a thread for using audio
|
|
|
|
static void AudioThread (CAudioPlugin * _this);
|
|
|
|
|
|
|
|
};
|