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

#include <realopl.h>

Inheritance diagram for CRealopl:
Copl CAnalopl

Public Member Functions

 CRealopl (unsigned short initport=DFL_ADLIBPORT)
bool detect ()
void setvolume (int volume)
void setquiet (bool quiet=true)
void setport (unsigned short port)
void setnowrite (bool nw=true)
int getvolume ()
void write (int reg, int val)
void init ()
void settype (ChipType type)
Public Member Functions inherited from Copl
 Copl ()
virtual ~Copl ()
virtual void setchip (int n)
virtual int getchip ()
ChipType gettype ()
virtual void update (short *buf, int samples)

Protected Member Functions

void hardwrite (int reg, int val)
bool harddetect ()

Protected Attributes

unsigned short adlport
int hardvol
int oldvol
bool bequiet
char hardvols [2][22][2]
bool nowrite
Protected Attributes inherited from Copl
int currChip
ChipType currType

Static Protected Attributes

static const unsigned char op_table [9]

Additional Inherited Members

Public Types inherited from Copl
enum  ChipType { TYPE_OPL2 , TYPE_OPL3 , TYPE_DUAL_OPL2 }

Constructor & Destructor Documentation

◆ CRealopl()

CRealopl::CRealopl ( unsigned short initport = DFL_ADLIBPORT)

Member Function Documentation

◆ detect()

bool CRealopl::detect ( )

◆ getvolume()

int CRealopl::getvolume ( )
inline

◆ harddetect()

bool CRealopl::harddetect ( )
protected

◆ hardwrite()

void CRealopl::hardwrite ( int reg,
int val )
protected

◆ init()

void CRealopl::init ( void )
virtual

Implements Copl.

◆ setnowrite()

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

◆ setport()

void CRealopl::setport ( unsigned short port)
inline

◆ setquiet()

void CRealopl::setquiet ( bool quiet = true)

◆ settype()

void CRealopl::settype ( ChipType type)
inline

◆ setvolume()

void CRealopl::setvolume ( int volume)

◆ write()

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

Implements Copl.

Member Data Documentation

◆ adlport

unsigned short CRealopl::adlport
protected

◆ bequiet

bool CRealopl::bequiet
protected

◆ hardvol

int CRealopl::hardvol
protected

◆ hardvols

char CRealopl::hardvols[2][22][2]
protected

◆ nowrite

bool CRealopl::nowrite
protected

◆ oldvol

int CRealopl::oldvol
protected

◆ op_table

const unsigned char CRealopl::op_table
staticprotected
Initial value:
=
{0x00, 0x01, 0x02, 0x08, 0x09, 0x0a, 0x10, 0x11, 0x12}

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