2016-01-27 09:11:59 +00:00
|
|
|
#pragma once
|
|
|
|
#include <Project64-core/Plugins/PluginBase.h>
|
|
|
|
|
|
|
|
class CAudioPlugin : public CPlugin
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CAudioPlugin(void);
|
|
|
|
~CAudioPlugin();
|
|
|
|
|
|
|
|
void DacrateChanged(SYSTEM_TYPE Type);
|
|
|
|
bool Initiate(CN64System * System, RenderWindow * Window);
|
|
|
|
|
|
|
|
void(CALL *AiLenChanged)(void);
|
|
|
|
uint32_t(CALL *AiReadLength)(void);
|
|
|
|
void(CALL *ProcessAList)(void);
|
|
|
|
|
|
|
|
private:
|
2021-04-13 00:07:11 +00:00
|
|
|
CAudioPlugin(const CAudioPlugin&);
|
|
|
|
CAudioPlugin& operator=(const CAudioPlugin&);
|
2016-01-27 09:11:59 +00:00
|
|
|
|
|
|
|
virtual int32_t GetDefaultSettingStartRange() const { return FirstAudioDefaultSet; }
|
|
|
|
virtual int32_t GetSettingStartRange() const { return FirstAudioSettings; }
|
|
|
|
PLUGIN_TYPE type() { return PLUGIN_TYPE_AUDIO; }
|
|
|
|
|
|
|
|
void * m_hAudioThread;
|
|
|
|
|
|
|
|
bool LoadFunctions(void);
|
|
|
|
void UnloadPluginDetails(void);
|
|
|
|
|
2021-04-13 00:07:11 +00:00
|
|
|
void(CALL *AiUpdate) (int32_t Wait);
|
2016-01-27 09:11:59 +00:00
|
|
|
void(CALL *AiDacrateChanged)(SYSTEM_TYPE Type);
|
|
|
|
|
|
|
|
static void AudioThread(CAudioPlugin * _this);
|
|
|
|
};
|