2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* 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
|
2015-11-12 10:08:47 +00:00
|
|
|
#include "Plugin Base.h"
|
2012-12-19 09:30:18 +00:00
|
|
|
|
2015-01-30 21:01:21 +00:00
|
|
|
class CAudioPlugin : public CPlugin
|
2012-10-04 12:23:07 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-11-08 06:08:15 +00:00
|
|
|
CAudioPlugin(void);
|
|
|
|
~CAudioPlugin();
|
2012-10-04 12:23:07 +00:00
|
|
|
|
2015-11-08 06:08:15 +00:00
|
|
|
void DacrateChanged(SYSTEM_TYPE Type);
|
2015-11-12 10:08:47 +00:00
|
|
|
bool Initiate(CN64System * System, RenderWindow * Window);
|
2012-10-04 12:23:07 +00:00
|
|
|
|
2015-11-08 06:08:15 +00:00
|
|
|
void(__cdecl *AiLenChanged)(void);
|
|
|
|
uint32_t(__cdecl *AiReadLength)(void);
|
|
|
|
void(__cdecl *ProcessAList)(void);
|
2012-10-04 12:23:07 +00:00
|
|
|
|
|
|
|
private:
|
2015-11-08 06:08:15 +00:00
|
|
|
CAudioPlugin(const CAudioPlugin&); // Disable copy constructor
|
|
|
|
CAudioPlugin& operator=(const CAudioPlugin&); // Disable assignment
|
2015-01-30 21:01:21 +00:00
|
|
|
|
2015-11-08 06:08:15 +00:00
|
|
|
virtual int32_t GetDefaultSettingStartRange() const { return FirstAudioDefaultSet; }
|
|
|
|
virtual int32_t GetSettingStartRange() const { return FirstAudioSettings; }
|
|
|
|
PLUGIN_TYPE type() { return PLUGIN_TYPE_AUDIO; }
|
2015-01-30 21:01:21 +00:00
|
|
|
|
2015-11-08 06:08:15 +00:00
|
|
|
void * m_hAudioThread;
|
2015-01-30 21:01:21 +00:00
|
|
|
|
2015-11-08 06:08:15 +00:00
|
|
|
bool LoadFunctions(void);
|
|
|
|
void UnloadPluginDetails(void);
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-11-08 06:08:15 +00:00
|
|
|
void(__cdecl *AiUpdate) (int32_t Wait);
|
|
|
|
void(__cdecl *AiDacrateChanged)(SYSTEM_TYPE Type);
|
|
|
|
|
|
|
|
// Function used in a thread for using audio
|
|
|
|
static void AudioThread(CAudioPlugin * _this);
|
2008-09-18 03:15:49 +00:00
|
|
|
};
|