AxibugEmuOnline/References/VirtuaNESex_src_191105/NES/ApuEX/APU_VRC7.h
2024-08-05 17:58:53 +08:00

41 lines
1.0 KiB
C++

//////////////////////////////////////////////////////////////////////////
// //
// Konami VRC7 //
// Norix //
// written 2001/09/18 //
// last modify ----/--/-- //
//////////////////////////////////////////////////////////////////////////
#ifndef __APU_VRC7_INCLUDED__
#define __APU_VRC7_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#include "typedef.h"
#include "macro.h"
#include "APU_INTERFACE.h"
#include "emu2413.h"
class APU_VRC7 : public APU_INTERFACE
{
public:
APU_VRC7();
~APU_VRC7();
void Reset( FLOAT fClock, INT nRate );
void Setup( FLOAT fClock, INT nRate );
void Write( WORD addr, BYTE data );
INT Process( INT channel );
INT GetFreq( INT channel );
protected:
OPLL* VRC7_OPLL;
BYTE address;
private:
};
#endif // !__APU_VRC7_INCLUDED__