LMMS
Loading...
Searching...
No Matches
CDiskopl Class Reference

#include <diskopl.h>

Inheritance diagram for CDiskopl:
Copl

Public Member Functions

 CDiskopl (std::string filename)
virtual ~CDiskopl ()
void update (CPlayer *p)
void setnowrite (bool nw=true)
void setchip (int n)
void write (int reg, int val)
void init ()
Public Member Functions inherited from Copl
 Copl ()
virtual ~Copl ()
virtual int getchip ()
ChipType gettype ()
virtual void update (short *buf, int samples)

Private Member Functions

void diskwrite (int reg, int val)

Private Attributes

FILE * f
float old_freq
unsigned char del
bool nowrite

Static Private Attributes

static const unsigned char op_table [9] = {0x00, 0x01, 0x02, 0x08, 0x09, 0x0a, 0x10, 0x11, 0x12}

Additional Inherited Members

Public Types inherited from Copl
enum  ChipType { TYPE_OPL2 , TYPE_OPL3 , TYPE_DUAL_OPL2 }
Protected Attributes inherited from Copl
int currChip
ChipType currType

Constructor & Destructor Documentation

◆ CDiskopl()

CDiskopl::CDiskopl ( std::string filename)

◆ ~CDiskopl()

CDiskopl::~CDiskopl ( )
virtual

Member Function Documentation

◆ diskwrite()

void CDiskopl::diskwrite ( int reg,
int val )
private

◆ init()

void CDiskopl::init ( void )
virtual

Implements Copl.

◆ setchip()

void CDiskopl::setchip ( int n)
virtual

Reimplemented from Copl.

◆ setnowrite()

void CDiskopl::setnowrite ( bool nw = true)
inline

◆ update()

void CDiskopl::update ( CPlayer * p)

◆ write()

void CDiskopl::write ( int reg,
int val )
virtual

Implements Copl.

Member Data Documentation

◆ del

unsigned char CDiskopl::del
private

◆ f

FILE* CDiskopl::f
private

◆ nowrite

bool CDiskopl::nowrite
private

◆ old_freq

float CDiskopl::old_freq
private

◆ op_table

const unsigned char CDiskopl::op_table = {0x00, 0x01, 0x02, 0x08, 0x09, 0x0a, 0x10, 0x11, 0x12}
staticprivate

The documentation for this class was generated from the following files: