ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

OPL::MAME Namespace Reference

Classes

struct  fm_opl_slot
struct  fm_opl_channel
struct  fm_opl_f
class  OPL

Typedefs

typedef void(* OPL_TIMERHANDLER )(int channel, double interval_Sec)
typedef void(* OPL_IRQHANDLER )(int param, int irq)
typedef void(* OPL_UPDATEHANDLER )(int param, int min_interval_us)
typedef struct
OPL::MAME::fm_opl_slot 
OPL_SLOT
typedef struct
OPL::MAME::fm_opl_channel 
OPL_CH
typedef struct OPL::MAME::fm_opl_f FM_OPL

Enumerations

enum  {
  FMOPL_ENV_BITS_HQ = 16, FMOPL_ENV_BITS_MQ = 8, FMOPL_ENV_BITS_LQ = 8, FMOPL_EG_ENT_HQ = 4096,
  FMOPL_EG_ENT_MQ = 1024, FMOPL_EG_ENT_LQ = 128
}

Functions

void OPLBuildTables (int ENV_BITS_PARAM, int EG_ENT_PARAM)
void OPL_STATUS_SET (FM_OPL *OPL, int flag)
void OPL_STATUS_RESET (FM_OPL *OPL, int flag)
void OPL_STATUSMASK_SET (FM_OPL *OPL, int flag)
void OPL_KEYON (OPL_SLOT *SLOT)
void OPL_KEYOFF (OPL_SLOT *SLOT)
uint OPL_CALC_SLOT (OPL_SLOT *SLOT)
static void set_algorythm (OPL_CH *CH)
void CALC_FCSLOT (OPL_CH *CH, OPL_SLOT *SLOT)
void set_mul (FM_OPL *OPL, int slot, int v)
void set_ksl_tl (FM_OPL *OPL, int slot, int v)
void set_ar_dr (FM_OPL *OPL, int slot, int v)
void set_sl_rr (FM_OPL *OPL, int slot, int v)
void OPL_CALC_CH (OPL_CH *CH)
void OPL_CALC_RH (FM_OPL *OPL, OPL_CH *CH)
static void init_timetables (FM_OPL *OPL, int ARRATE, int DRRATE)
static int OPLOpenTable (void)
static void OPLCloseTable (void)
void CSMKeyControll (OPL_CH *CH)
static void OPL_initalize (FM_OPL *OPL)
void OPLWriteReg (FM_OPL *OPL, int r, int v)
static int OPL_LockTable (void)
static void OPL_UnLockTable (void)
void YM3812UpdateOne (FM_OPL *OPL, int16 *buffer, int length)
void OPLResetChip (FM_OPL *OPL)
FM_OPLOPLCreate (int type, int clock, int rate)
void OPLDestroy (FM_OPL *OPL)
void OPLSetTimerHandler (FM_OPL *OPL, OPL_TIMERHANDLER TimerHandler, int channelOffset)
void OPLSetIRQHandler (FM_OPL *OPL, OPL_IRQHANDLER IRQHandler, int param)
void OPLSetUpdateHandler (FM_OPL *OPL, OPL_UPDATEHANDLER UpdateHandler, int param)
int OPLWrite (FM_OPL *OPL, int a, int v)
unsigned char OPLRead (FM_OPL *OPL, int a)
int OPLTimerOver (FM_OPL *OPL, int c)
FM_OPLmakeAdLibOPL (int rate)

Variables

int ENV_BITS
int EG_ENT
int EG_OFF
int EG_DED
int EG_DST
int EG_AED
static const int slot_array [32]
static uint KSL_TABLE [8 *16]
static const double KSL_TABLE_SEED [8 *16]
static int SL_TABLE [16]
static const uint SL_TABLE_SEED [16]
static int * TL_TABLE
static int ** SIN_TABLE
static int * AMS_TABLE
static int * VIB_TABLE
static int * ENV_CURVE
static const uint MUL_TABLE [16]
static int RATE_0 [16]
static int num_lock = 0
static void * cur_chip = NULL
static OPL_CHS_CH
static OPL_CHE_CH
OPL_SLOTSLOT7_1
OPL_SLOTSLOT7_2
OPL_SLOTSLOT8_1
OPL_SLOTSLOT8_2
static int outd [1]
static int ams
static int vib
int * ams_table
int * vib_table
static int amsIncr
static int vibIncr
static int feedback2

Typedef Documentation

typedef void(* OPL::MAME::OPL_IRQHANDLER)(int param, int irq)

Definition at line 49 of file mame.h.

typedef void(* OPL::MAME::OPL_TIMERHANDLER)(int channel, double interval_Sec)

Definition at line 48 of file mame.h.

typedef void(* OPL::MAME::OPL_UPDATEHANDLER)(int param, int min_interval_us)

Definition at line 50 of file mame.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
FMOPL_ENV_BITS_HQ 
FMOPL_ENV_BITS_MQ 
FMOPL_ENV_BITS_LQ 
FMOPL_EG_ENT_HQ 
FMOPL_EG_ENT_MQ 
FMOPL_EG_ENT_LQ 

Definition at line 38 of file mame.h.


Function Documentation

void OPL::MAME::CALC_FCSLOT ( OPL_CH *  CH,
OPL_SLOT *  SLOT 
) [inline]

Definition at line 415 of file mame.cpp.

void OPL::MAME::CSMKeyControll ( OPL_CH *  CH  )  [inline]

Definition at line 765 of file mame.cpp.

static void OPL::MAME::init_timetables ( FM_OPL *  OPL,
int  ARRATE,
int  DRRATE 
) [static]

Definition at line 634 of file mame.cpp.

FM_OPL * OPL::MAME::makeAdLibOPL ( int  rate  ) 
void OPL::MAME::OPL_CALC_CH ( OPL_CH *  CH  )  [inline]

Definition at line 497 of file mame.cpp.

void OPL::MAME::OPL_CALC_RH ( FM_OPL *  OPL,
OPL_CH *  CH 
) [inline]

Definition at line 539 of file mame.cpp.

uint OPL::MAME::OPL_CALC_SLOT ( OPL_SLOT *  SLOT  )  [inline]

Definition at line 375 of file mame.cpp.

static void OPL::MAME::OPL_initalize ( FM_OPL *  OPL  )  [static]

Definition at line 781 of file mame.cpp.

void OPL::MAME::OPL_KEYOFF ( OPL_SLOT *  SLOT  )  [inline]

Definition at line 331 of file mame.cpp.

void OPL::MAME::OPL_KEYON ( OPL_SLOT *  SLOT  )  [inline]

Definition at line 320 of file mame.cpp.

static int OPL::MAME::OPL_LockTable ( void   )  [static]

Definition at line 991 of file mame.cpp.

void OPL::MAME::OPL_STATUS_RESET ( FM_OPL *  OPL,
int  flag 
) [inline]

Definition at line 299 of file mame.cpp.

void OPL::MAME::OPL_STATUS_SET ( FM_OPL *  OPL,
int  flag 
) [inline]

Definition at line 285 of file mame.cpp.

void OPL::MAME::OPL_STATUSMASK_SET ( FM_OPL *  OPL,
int  flag 
) [inline]

Definition at line 312 of file mame.cpp.

static void OPL::MAME::OPL_UnLockTable ( void   )  [static]

Definition at line 1005 of file mame.cpp.

void OPL::MAME::OPLBuildTables ( int  ENV_BITS_PARAM,
int  EG_ENT_PARAM 
)
static void OPL::MAME::OPLCloseTable ( void   )  [static]

Definition at line 754 of file mame.cpp.

FM_OPL * OPL::MAME::OPLCreate ( int  type,
int  clock,
int  rate 
)
void OPL::MAME::OPLDestroy ( FM_OPL *  OPL  ) 
static int OPL::MAME::OPLOpenTable ( void   )  [static]

Definition at line 657 of file mame.cpp.

unsigned char OPL::MAME::OPLRead ( FM_OPL *  OPL,
int  a 
)
void OPL::MAME::OPLResetChip ( FM_OPL *  OPL  ) 
void OPL::MAME::OPLSetIRQHandler ( FM_OPL *  OPL,
OPL_IRQHANDLER  IRQHandler,
int  param 
)
void OPL::MAME::OPLSetTimerHandler ( FM_OPL *  OPL,
OPL_TIMERHANDLER  TimerHandler,
int  channelOffset 
)
void OPL::MAME::OPLSetUpdateHandler ( FM_OPL *  OPL,
OPL_UPDATEHANDLER  UpdateHandler,
int  param 
)
int OPL::MAME::OPLTimerOver ( FM_OPL *  OPL,
int  c 
)
int OPL::MAME::OPLWrite ( FM_OPL *  OPL,
int  a,
int  v 
)
void OPL::MAME::OPLWriteReg ( FM_OPL *  OPL,
int  r,
int  v 
)
static void OPL::MAME::set_algorythm ( OPL_CH *  CH  )  [static]

Definition at line 408 of file mame.cpp.

void OPL::MAME::set_ar_dr ( FM_OPL *  OPL,
int  slot,
int  v 
) [inline]

Definition at line 460 of file mame.cpp.

void OPL::MAME::set_ksl_tl ( FM_OPL *  OPL,
int  slot,
int  v 
) [inline]

Definition at line 446 of file mame.cpp.

void OPL::MAME::set_mul ( FM_OPL *  OPL,
int  slot,
int  v 
) [inline]

Definition at line 433 of file mame.cpp.

void OPL::MAME::set_sl_rr ( FM_OPL *  OPL,
int  slot,
int  v 
) [inline]

Definition at line 478 of file mame.cpp.

void OPL::MAME::YM3812UpdateOne ( FM_OPL *  OPL,
int16 buffer,
int  length 
)

Variable Documentation

int OPL::MAME::ams [static]

Definition at line 248 of file mame.cpp.

int* OPL::MAME::AMS_TABLE [static]

Definition at line 211 of file mame.cpp.

Definition at line 250 of file mame.cpp.

int OPL::MAME::amsIncr [static]

Definition at line 252 of file mame.cpp.

void* OPL::MAME::cur_chip = NULL [static]

Definition at line 240 of file mame.cpp.

Definition at line 244 of file mame.cpp.

Definition at line 114 of file mame.cpp.

Definition at line 112 of file mame.cpp.

Definition at line 113 of file mame.cpp.

Definition at line 107 of file mame.cpp.

Definition at line 111 of file mame.cpp.

Definition at line 105 of file mame.cpp.

int* OPL::MAME::ENV_CURVE [static]

Definition at line 218 of file mame.cpp.

int OPL::MAME::feedback2 [static]

Definition at line 254 of file mame.cpp.

uint OPL::MAME::KSL_TABLE[8 *16] [static]

Definition at line 147 of file mame.cpp.

const double OPL::MAME::KSL_TABLE_SEED[8 *16] [static]

Definition at line 149 of file mame.cpp.

const uint OPL::MAME::MUL_TABLE[16] [static]
Initial value:
 {

    ML(0.50), ML(1.00), ML(2.00),  ML(3.00), ML(4.00), ML(5.00), ML(6.00), ML(7.00),
    ML(8.00), ML(9.00), ML(10.00), ML(10.00),ML(12.00),ML(12.00),ML(15.00),ML(15.00)
}

Definition at line 223 of file mame.cpp.

int OPL::MAME::num_lock = 0 [static]

Definition at line 237 of file mame.cpp.

int OPL::MAME::outd[1] [static]

Definition at line 247 of file mame.cpp.

int OPL::MAME::RATE_0[16] [static]
Initial value:
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}

Definition at line 231 of file mame.cpp.

Definition at line 243 of file mame.cpp.

int** OPL::MAME::SIN_TABLE [static]

Definition at line 208 of file mame.cpp.

int OPL::MAME::SL_TABLE[16] [static]

Definition at line 195 of file mame.cpp.

const uint OPL::MAME::SL_TABLE_SEED[16] [static]
Initial value:
 {
    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 31
}

Definition at line 197 of file mame.cpp.

Definition at line 245 of file mame.cpp.

Definition at line 245 of file mame.cpp.

Definition at line 245 of file mame.cpp.

Definition at line 245 of file mame.cpp.

const int OPL::MAME::slot_array[32] [static]
Initial value:
 {
     0, 2, 4, 1, 3, 5,-1,-1,
     6, 8,10, 7, 9,11,-1,-1,
    12,14,16,13,15,17,-1,-1,
    -1,-1,-1,-1,-1,-1,-1,-1
}

Definition at line 140 of file mame.cpp.

int* OPL::MAME::TL_TABLE [static]

Definition at line 205 of file mame.cpp.

int OPL::MAME::vib [static]

Definition at line 249 of file mame.cpp.

int* OPL::MAME::VIB_TABLE [static]

Definition at line 212 of file mame.cpp.

Definition at line 251 of file mame.cpp.

int OPL::MAME::vibIncr [static]

Definition at line 253 of file mame.cpp.



Generated on Sat Feb 16 2019 05:05:48 for ResidualVM by doxygen 1.7.1
curved edge   curved edge