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

41 lines
2.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//////////////////////////////////////////////////////////////////////////
// //
// 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__